diff options
Diffstat (limited to 'src/net-rename')
-rw-r--r--[-rwxr-xr-x] | src/net-rename | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net-rename b/src/net-rename index db2c461..1cff1c1 100755..100644 --- a/src/net-rename +++ b/src/net-rename @@ -2,12 +2,13 @@ . /etc/rc.conf . /etc/rc.d/functions +. /usr/lib/network/globals case "$1" in start) - stat_busy "Renaming network devices" + report_try "Renaming network devices" ifrename -p -t - stat_done + report_success add_daemon net-rename ;; @@ -17,9 +18,10 @@ case "$1" in /bin/true ;; restart) - $0 start + "$0" start ;; *) - echo "usage: $0 {start|stop|restart}" + exit_stderr "Usage: $0 {start|stop|restart}" + ;; esac # vim: set ts=4 et sw=4: |