blob: f90c437323066c5a9414be10f0661a1b54f430d3 [file] [log] [blame]
[Unit]
Description=Attach the PNOR mtd device to UBI
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart={sbindir}/bios-ubiattach
ExecStop=/bin/sh -c 'grep pnor /proc/mtd |cut -c 4 |xargs {sbindir}/ubidetach /dev/ubi_ctrl -m'