diff options
author | James Rayner <james@archlinux.org> | 2009-08-07 16:23:45 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-07 16:23:45 +0200 |
commit | 54e39849f1e60eb043f9d8f0904acf3c79d96a1c (patch) | |
tree | 9c10a01ea0ba58d31b3ab8282ead767da49264d3 /src/net-rename | |
parent | f7168ae05837a24060b41511be6e4626cb26828a (diff) | |
download | netctl-54e39849f1e60eb043f9d8f0904acf3c79d96a1c.tar.gz netctl-54e39849f1e60eb043f9d8f0904acf3c79d96a1c.tar.xz |
Patch from Jim Pryor
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: |