Files
ssm-services/init.d/mdev

16 lines
222 B
Plaintext
Raw Normal View History

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