ssm-services/init.d/udev
2014-02-26 02:31:59 +04:00

28 lines
520 B
Plaintext
Executable File

#!/usr/bin/env watchman
service_command='/sbin/udevd'
# service_args='--resolve-names=never'
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}
}
start() {
watchman.start
sleep 1
udev.populate_dev
}
reload() {
udevadm control --reload
}