ssm-services/init.d/udev

26 lines
503 B
Plaintext
Raw Normal View History

2013-09-28 23:32:39 +00:00
#!/usr/bin/env watchman
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
2014-02-25 00:45:13 +00:00
depends devfs
2013-09-28 23:32:39 +00:00
udev.populate_dev() {
watchman.msg "Populating /dev with udev..."
udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
2013-09-28 23:32:39 +00:00
watchman.msg "Waiting for uevents..."
udevadm settle --timeout=${cfg_udev_settle_timeout}
2014-04-04 11:40:00 +00:00
udevadm control --property=do_not_run_plug_service=
2013-09-28 23:32:39 +00:00
}
start() {
watchman.start
sleep 1
udev.populate_dev
}
reload() {
udevadm control --reload
}