diff options
author | Andrea Scarpino <andrea@archlinux.org> | 2009-05-19 18:57:56 +0200 |
---|---|---|
committer | Andrea Scarpino <andrea@archlinux.org> | 2009-05-19 18:57:56 +0200 |
commit | d07fceaa2ce0b70ed74a14903d69ef96f698b98f (patch) | |
tree | 8f3571b1e078d3a14a4103a491573e65400df6ca | |
parent | 2878a5d7725e7f80e1b5a404f2df7416c80c43f3 (diff) | |
download | netctl-d07fceaa2ce0b70ed74a14903d69ef96f698b98f.tar.gz netctl-d07fceaa2ce0b70ed74a14903d69ef96f698b98f.tar.xz |
fix #14761 (again)
-rw-r--r-- | src/network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network b/src/network index f2fc415..ba94eb6 100644 --- a/src/network +++ b/src/network @@ -64,7 +64,7 @@ all_suspend() [[ ! -d $STATE_DIR ]] && mkdir -p $STATE_DIR/{interfaces,profiles} [[ ! -d $STATE_DIR/suspend ]] && mkdir $STATE_DIR/suspend - for prof in find "$STATE_DIR/profiles/" -maxdepth 1 -type f; do + for prof in "$(find ${STATE_DIR}/suspend/ -maxdepth 1 -type f -printf '%f\n')"; do cp $STATE_DIR/profiles/$prof $STATE_DIR/suspend/ profile_down $prof done @@ -75,7 +75,7 @@ all_suspend() # all_resume() { - for prof in find "$STATE_DIR/suspend/" -maxdepth 1 -type f; do + for prof in "$(find ${STATE_DIR}/suspend/ -maxdepth 1 -type f -printf '%f\n')"; do profile_up $prof rm $STATE_DIR/suspend/$prof done @@ -221,7 +221,7 @@ get_iface_prof() { # list_profiles # Outputs a list of all profiles list_profiles() { - find $PROFILE_DIR/ -maxdepth 1 -type f -printf "%f\n" + find $PROFILE_DIR/ -maxdepth 1 -type f -printf "%f\n" } # check_profile profile |