forked from Spark/ssm-services
separating udev end eudev into different scripts
This commit is contained in:
parent
4bf86dc02f
commit
f2c7faa749
27
init.d/udev
27
init.d/udev
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env watchman
|
|
||||||
|
|
||||||
source "${cfg_dir}/conf.d/udev.sh"
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user