summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:09 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:29 +0200
commitc37f2081157b15be719ce8afb0e8e15afbf24253 (patch)
treef8fc22dd0be2bccb7a6d3489469a34de9b78ea55 /src/network
parent387472ec4f87d2f4516a4205f77d75326f3b9a6f (diff)
downloadnetctl-c37f2081157b15be719ce8afb0e8e15afbf24253.tar.gz
netctl-c37f2081157b15be719ce8afb0e8e15afbf24253.tar.xz
silence an error in set_iface
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/network')
-rw-r--r--src/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network b/src/network
index b0adcde..f1ce0b2 100644
--- a/src/network
+++ b/src/network
@@ -311,7 +311,7 @@ set_iface() {
if [[ "$1" == "up" ]]; then
echo "PROFILE=$PROFILE" > $STATE_DIR/interfaces/$2
elif [[ "$1" == "down" ]]; then
- rm $STATE_DIR/interfaces/$2
+ rm -f "$STATE_DIR/interfaces/$2" # JP: add -f so we don't complain if the interface isn't up
fi
}