forked from Spark/ssm-services
eudev and udev should be separate
This commit is contained in:
parent
4f37bc997c
commit
20f1cad363
|
@ -1,5 +0,0 @@
|
|||
# systemd-udevd:
|
||||
#service_command='/usr/lib/systemd/systemd-udevd'
|
||||
|
||||
# eudev:
|
||||
service_command='/sbin/udevd'
|
27
init.d/eudev
Executable file
27
init.d/eudev
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/usr/bin/udevd'
|
||||
|
||||
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
|
||||
|
||||
depends devfs
|
||||
|
||||
udev.populate_dev() {
|
||||
watchman.msg "Populating /dev with udev..."
|
||||
udevadm trigger --type=subsystems --action=add
|
||||
udevadm trigger --type=devices --action=add
|
||||
|
||||
watchman.msg "Waiting for uevents..."
|
||||
udevadm settle --timeout=${cfg_udev_settle_timeout}
|
||||
udevadm control --property=do_not_run_plug_service=
|
||||
}
|
||||
|
||||
start() {
|
||||
watchman.start
|
||||
sleep 1
|
||||
udev.populate_dev
|
||||
}
|
||||
|
||||
reload() {
|
||||
udevadm control --reload
|
||||
}
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/usr/lib/systemd/systemd-udevd'
|
||||
|
||||
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
|
||||
|
||||
depends devfs
|
||||
|
|
Loading…
Reference in New Issue
Block a user