2013-09-28 23:32:39 +00:00
|
|
|
#!/usr/bin/env watchman
|
|
|
|
|
2014-08-01 01:30:28 +00:00
|
|
|
service_type='oneshot'
|
2014-08-01 01:27:13 +00:00
|
|
|
service_command='/bin/mdev'
|
|
|
|
service_args='-s'
|
2013-09-28 23:32:39 +00:00
|
|
|
|
|
|
|
hotplug() {
|
|
|
|
echo "Enabling hotplug..."
|
2014-08-01 01:27:13 +00:00
|
|
|
echo /bin/mdev > /proc/sys/kernel/hotplug
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
watchman.start
|
|
|
|
hotplug
|
2013-09-28 23:32:39 +00:00
|
|
|
}
|