READMEs in the config dirs
This commit is contained in:
3
init.d/README
Normal file
3
init.d/README
Normal file
@@ -0,0 +1,3 @@
|
||||
Here lie the service scripts in all their glory.
|
||||
Please be advised that the scripts may need tweaking to work on different systems.
|
||||
These were written for my Arch desktops so should all work for most arch boxes out there.
|
27
init.d/systemd-udevd
Executable file
27
init.d/systemd-udevd
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/usr/lib/systemd/systemd-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
|
||||
}
|
Reference in New Issue
Block a user