watchman -> ssm

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-07-13 16:09:42 +03:00
parent 3953df0dba
commit 2205f72a2e
71 changed files with 198 additions and 212 deletions

View File

@@ -1,15 +1,12 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/true )
start() {
watchman.msg "Running module autodetect..."
watchman.start
}
pre_start() {
printf '(${service_name}) Running module autodetect...\n'
spawn() {
# The Alpine Linux hwdetect script runs this twice.
# Apparently to make sure we get devices that appear after loading a module on the first run.
# The Alpine Linux hwdetect script runs this twice. Apparently to make sure we get devices that appear after loading a module on the first run.
find /sys -name modalias -type f -print0 | xargs -0 sort -u | xargs modprobe -b -a 2>/dev/null
find /sys -name modalias -type f -print0 | xargs -0 sort -u | xargs modprobe -b -a 2>/dev/null