diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 18:49:07 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-07 12:02:05 +0200 |
commit | 6e369d4a1e082be88c3e8132477452c2dda3cf0e (patch) | |
tree | 823d4f510c6fd855e55f40486a226b4b49a54d0c /src | |
parent | 13406e34b1179d748b98791d1a15387ba053a4fa (diff) | |
download | netctl-6e369d4a1e082be88c3e8132477452c2dda3cf0e.tar.gz netctl-6e369d4a1e082be88c3e8132477452c2dda3cf0e.tar.xz |
long switches when calling netcfg
Also, the code seems mostly to use /usr/bin/netcfg2 rather than
/usr/bin/netcfg. So I've made it do that consistently (I think, in earlier
commits). Is this your intent?
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/net-profiles | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net-profiles b/src/net-profiles index a60d30b..3827c54 100644 --- a/src/net-profiles +++ b/src/net-profiles @@ -27,7 +27,7 @@ case "$1" in exit 0 fi elif [[ -n "$NET" ]]; then - if /usr/bin/netcfg2 -c "$NET"; then + if /usr/bin/netcfg2 check-iface "$NET"; then echo "$NET" > "$STATE_DIR/net-profiles" # JP: user may want to disconnect profile by calling net-profiles stop add_daemon net-profiles exit 0 @@ -46,7 +46,7 @@ case "$1" in ;; *) # Either interface or profile if [[ "$network" = "${network#!}" ]]; then # otherwise profile - if /usr/bin/netcfg2 -c "$network"; then + if /usr/bin/netcfg2 check-iface "$network"; then echo "$network" > "$STATE_DIR/net-profiles" # JP: user may want to disconnect profile by calling net-profiles stop add_daemon net-profiles exit 0 |