diff options
Diffstat (limited to 'rc.d/net-profiles')
-rwxr-xr-x | rc.d/net-profiles | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/net-profiles b/rc.d/net-profiles index f7770ee..e8b8bc7 100755 --- a/rc.d/net-profiles +++ b/rc.d/net-profiles @@ -70,9 +70,9 @@ case "$1" in # shutdown any profiles started by netcfg (or from NET_PROFILES in rc.conf) # JP: only attempt to disconnect the profiles _this daemon_ was told to control - for profile in $(cat "$STATE_DIR/net-profiles"); do + while read profile; do /usr/bin/netcfg2 down "$profile" - done + done < "$STATE_DIR/net-profiles" rm -f "$STATE_DIR/net-profiles" rm_daemon net-profiles ;; |