forked from pool/util-linux
Stanislav Brabec
7c66eb8cf6
- raw.service: Add RemainAfterExit=yes (bsc#1135534). OBS-URL: https://build.opensuse.org/request/show/710680 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=403
19 lines
387 B
Desktop File
19 lines
387 B
Desktop File
[Unit]
|
|
Description=raw devices
|
|
After=local-fs.target remote-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
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
|