diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-08-07 00:35:30 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-08-07 00:35:30 +0200 |
commit | 9797f90b529d80062f19a830aafa4e4a5e8d79cf (patch) | |
tree | 32737a068639f842f911a3b360bf734765873442 /src | |
parent | 124580abf297b9b6ce1a7558feee1e38d68fe9d9 (diff) | |
download | netctl-9797f90b529d80062f19a830aafa4e4a5e8d79cf.tar.gz netctl-9797f90b529d80062f19a830aafa4e4a5e8d79cf.tar.xz |
Better quoting of $profile
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/network | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network b/src/network index 195c480..e55647c 100644 --- a/src/network +++ b/src/network @@ -333,7 +333,7 @@ set_iface() { local PROFILE="$3" [[ -z "$PROFILE" ]] && PROFILE=external if [[ "$1" == "up" ]]; then - echo "PROFILE=$PROFILE" > "$STATE_DIR/interfaces/$2" + echo "PROFILE='$PROFILE'" > "$STATE_DIR/interfaces/$2" elif [[ "$1" == "down" ]]; then rm -f "$STATE_DIR/interfaces/$2" # JP: add -f so we don't complain if the interface isn't up fi |