diff options
-rwxr-xr-x | src.etc/init.d/mdev | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src.etc/init.d/mdev b/src.etc/init.d/mdev index ddb4586..f5b4a74 100755 --- a/src.etc/init.d/mdev +++ b/src.etc/init.d/mdev @@ -27,6 +27,15 @@ stop() printf 'done.\n' } +restart() +{ + printf 'Recanning devices... ' + + mdev -s + + printf 'done.\n' +} + case "${1}" in start) start @@ -35,8 +44,7 @@ case "${1}" in stop ;; restart) - stop - start + restart ;; *) printf 'Usage: %s {start|stop|restart}\n' "${0}" >&2 |