blob: 90013ff1e54a4799e485daa9013e0c3303a4b7e7 [file] [log] [blame]
Adriana Kobylak425b6342017-03-07 12:24:52 -06001[Unit]
2Description=Attach the PNOR mtd device to UBI
3
4[Service]
5Type=oneshot
6RemainAfterExit=yes
7ExecStart=/bin/sh -c 'grep pnor /proc/mtd |cut -c 4 |xargs {sbindir}/ubiattach /dev/ubi_ctrl -m'
8ExecStop=/bin/sh -c 'grep pnor /proc/mtd |cut -c 4 |xargs {sbindir}/ubidetach /dev/ubi_ctrl -m'