summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
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
}