diff options
author | mtm <mtm@FreeBSD.org> | 2004-05-20 14:16:05 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-05-20 14:16:05 +0000 |
commit | 5d2866f12529550c960cda188799bc5cca069dfc (patch) | |
tree | a7e84d8ec528ed2eb77f02d481551ee230e7f19c /etc/rc.d/dhclient | |
parent | 553013776a90a4809e915d11ff0d2c56c7efc385 (diff) | |
download | FreeBSD-src-5d2866f12529550c960cda188799bc5cca069dfc.zip FreeBSD-src-5d2866f12529550c960cda188799bc5cca069dfc.tar.gz |
The err routine requires two arguments: an exit value and a string.
Additionaly, it will exit the script so an return statements after
calling it are superflous.
Diffstat (limited to 'etc/rc.d/dhclient')
-rwxr-xr-x | etc/rc.d/dhclient | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient index 2a6e13d..dce8717 100755 --- a/etc/rc.d/dhclient +++ b/etc/rc.d/dhclient @@ -37,8 +37,7 @@ dhclient_common() if [ -n "$_cmdifn" ]; then eval _cooked_list=\"`expr "$dhcp_list" : ".*\($_cmdifn\).*"`\" if [ -z "$_cooked_list" ]; then - err "No such network interface: $_cmdifn" - return 1 + err 1 "No such network interface: $_cmdifn" fi fi } |