summaryrefslogtreecommitdiffstats
path: root/src/net-rename
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:04:52 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:26 +0200
commitc0b4b19486aaa6e277c3344c40419225e085bd69 (patch)
tree22af58137e0ade6080f880340f853cb251f1fd57 /src/net-rename
parente4271e46d3ddfe0a3dbaef66d51157bfd88ca2ff (diff)
downloadnetctl-c0b4b19486aaa6e277c3344c40419225e085bd69.tar.gz
netctl-c0b4b19486aaa6e277c3344c40419225e085bd69.tar.xz
Everyone use i/o functions from globals/hooks
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/net-rename')
-rw-r--r--src/net-rename9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/net-rename b/src/net-rename
index db2c461..25a38ed 100644
--- a/src/net-rename
+++ b/src/net-rename
@@ -1,13 +1,12 @@
#!/bin/bash
-. /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
;;
@@ -20,6 +19,6 @@ case "$1" in
$0 start
;;
*)
- echo "usage: $0 {start|stop|restart}"
+ exit_stderr "Usage: $0 {start|stop|restart}"
esac
# vim: set ts=4 et sw=4: