2017-02-07 21:47:46 +01:00
|
|
|
[Unit]
|
|
|
|
Description=raw devices
|
|
|
|
After=local-fs.target remote-fs.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2019-06-19 01:19:58 +02:00
|
|
|
RemainAfterExit=yes
|
2017-02-07 21:47:46 +01:00
|
|
|
ExecStart=/bin/sh -c "\
|
|
|
|
/sbin/modprobe raw;\
|
|
|
|
/sbin/udevadm settle;\
|
|
|
|
for i in `grep -v ^# /etc/raw`; do\
|
|
|
|
rawdev=`echo $i | cut -f1 -d:`;\
|
|
|
|
rawbind=`echo $i | cut -f2- -d:`;\
|
|
|
|
/usr/sbin/raw /dev/raw/$rawdev /dev/$rawbind;\
|
|
|
|
done"
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|