summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-08-09 00:16:38 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-08-09 00:16:38 +0200
commitffb13baf64d2dab72b6d228865f9bfbe6bcfba2c (patch)
tree2eaecde1b9d61f3b6bdc36adf5611abe331c702c /src/network
parent9f01da55c1636f6ca784bb50d786c0d4efa9bed9 (diff)
downloadnetctl-ffb13baf64d2dab72b6d228865f9bfbe6bcfba2c.tar.gz
netctl-ffb13baf64d2dab72b6d228865f9bfbe6bcfba2c.tar.xz
Unset ROUTES before loading profiles (FS#25432)
Diffstat (limited to 'src/network')
-rw-r--r--src/network1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network b/src/network
index e55647c..e1a57a2 100644
--- a/src/network
+++ b/src/network
@@ -6,6 +6,7 @@
# $1: profile name
load_profile()
{
+ unset ROUTES
[[ -z "$1" ]] && return 1
if [[ ! -f "$PROFILE_DIR/$1" ]]; then
report_err "Profile \"$1\" does not exist"