ssm-services/services/systemd-udevd
fbt d85b1945e9 kek
Signed-off-by: fbt <fbt@fleshless.org>
2017-12-10 20:44:17 +03:00

23 lines
538 B
Plaintext
Executable File

#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/lib/systemd/systemd-udevd'
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
udev.populate_dev() {
prinft 'Populating /dev with udev...\n'
udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
printf 'Waiting for uevents...\n'
udevadm settle --timeout=${cfg_udev_settle_timeout}
udevadm control --property=do_not_run_plug_service=
}
post_start() { sleep 1; udev.populate_dev; }
reload() {
udevadm control --reload
}