summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2008-12-18 07:37:46 +0100
committerJames Rayner <james@archlinux.org>2008-12-18 07:37:46 +0100
commit5c2dc23703f1261b5b6eb0fd9906a2975e1c37ea (patch)
treea4e3ebcd2d40d824a8cabadda46c231704f6ac90 /src/network
parent41197e24cfe9d2bf040d411e6c438aff516d943f (diff)
downloadnetctl-5c2dc23703f1261b5b6eb0fd9906a2975e1c37ea.tar.gz
netctl-5c2dc23703f1261b5b6eb0fd9906a2975e1c37ea.tar.xz
use arguments to scripts rather than sourcing in connection functions
Diffstat (limited to 'src/network')
-rw-r--r--src/network5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network b/src/network
index f99df53..a05ab2c 100644
--- a/src/network
+++ b/src/network
@@ -117,7 +117,7 @@ profile_up()
eval $PRE_UP || exit 1
- if ! ${CONN_DIR/${CONNECTION} up $1; then
+ if ! ${CONN_DIR}/${CONNECTION} up $1; then
stat_fail
exit 1
fi
@@ -156,8 +156,7 @@ profile_down()
eval $PRE_DOWN || exit 1
- . $CONN_DIR/${CONNECTION}
- if ! ${CONNECTION}_down $1; then
+ if ! ${CONN_DIR}/${CONNECTION} down $1; then
stat_fail
exit 1
fi