diff options
author | P. J. McDermott <pjm@nac.net> | 2013-08-13 13:30:46 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-08-13 13:30:46 (EDT) |
commit | 09cb9e553cfb93965c756bf98f912bd5eb59aa65 (patch) | |
tree | 996149e77bb8041d97acb8a551ec3360e8494743 | |
parent | 76b4d6b792d24a18ce5efb75de62b82d4aa43642 (diff) |
/etc/init.d/mdev: Add a separate restart() func.
-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 |