2014-08-01 01:27:13 +00:00
|
|
|
#!/usr/bin/env watchman
|
|
|
|
|
2014-08-01 01:30:28 +00:00
|
|
|
service_type='oneshot'
|
2015-06-18 09:38:49 +00:00
|
|
|
service_command='/usr/bin/smdev'
|
2014-08-01 01:27:13 +00:00
|
|
|
service_args='-s'
|
|
|
|
|
|
|
|
hotplug() {
|
|
|
|
echo "Enabling hotplug..."
|
|
|
|
echo /bin/smdev > /proc/sys/kernel/hotplug
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
watchman.start
|
|
|
|
hotplug
|
|
|
|
}
|