From 54e39849f1e60eb043f9d8f0904acf3c79d96a1c Mon Sep 17 00:00:00 2001 From: James Rayner Date: Sat, 8 Aug 2009 00:23:45 +1000 Subject: Patch from Jim Pryor --- src/net-rename | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100755 => 100644 src/net-rename (limited to 'src/net-rename') diff --git a/src/net-rename b/src/net-rename old mode 100755 new mode 100644 index db2c461..1cff1c1 --- 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: -- cgit v1.2.3-24-g4f1b