Adriana Kobylak | 425b634 | 2017-03-07 12:24:52 -0600 | [diff] [blame^] | 1 | [Unit] |
2 | Description=Attach the PNOR mtd device to UBI | ||||
3 | |||||
4 | [Service] | ||||
5 | Type=oneshot | ||||
6 | RemainAfterExit=yes | ||||
7 | ExecStart=/bin/sh -c 'grep pnor /proc/mtd |cut -c 4 |xargs {sbindir}/ubiattach /dev/ubi_ctrl -m' | ||||
8 | ExecStop=/bin/sh -c 'grep pnor /proc/mtd |cut -c 4 |xargs {sbindir}/ubidetach /dev/ubi_ctrl -m' |