summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/network6
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