This commit is contained in:
Jack L. Frost 2014-08-01 05:27:13 +04:00
parent 88f71c8868
commit 70a8441010
2 changed files with 22 additions and 3 deletions

View File

@ -1,9 +1,14 @@
#!/usr/bin/env watchman #!/usr/bin/env watchman
service_command='/usr/local/sbin/mdev' service_command='/bin/mdev'
service_rgs='-s' service_args='-s'
hotplug() { hotplug() {
echo "Enabling hotplug..." echo "Enabling hotplug..."
echo /sbin/mdev > /proc/sys/kernel/hotplug echo /bin/mdev > /proc/sys/kernel/hotplug
}
start() {
watchman.start
hotplug
} }

14
init.d/smdev Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env watchman
service_command='/bin/smdev'
service_args='-s'
hotplug() {
echo "Enabling hotplug..."
echo /bin/smdev > /proc/sys/kernel/hotplug
}
start() {
watchman.start
hotplug
}