summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2008-08-06 14:47:34 +0200
committerJames Rayner <james@archlinux.org>2008-08-06 14:47:34 +0200
commitd5378547e1179cd09bdad3bb38dcf4c30cfffe69 (patch)
tree85678a815f65587266ccc28481e815ca203e2982
parent7555beb8b9cf85e8106859e5e6fed7b028e0d08e (diff)
downloadnetctl-d5378547e1179cd09bdad3bb38dcf4c30cfffe69.tar.gz
netctl-d5378547e1179cd09bdad3bb38dcf4c30cfffe69.tar.xz
Add logging of last profile connected FS#3941
-rw-r--r--src/network.subr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network.subr b/src/network.subr
index a99363f..ecc702f 100644
--- a/src/network.subr
+++ b/src/network.subr
@@ -237,6 +237,7 @@ set_profile() {
if [[ "$1" == "up" ]]; then
. $PROFILE_DIR/$2
cp $PROFILE_DIR/$2 $STATE_DIR/profiles/
+ echo $2 > $STATE_DIR/last_profile
set_iface up $INTERFACE $2
elif [[ "$1" == "down" ]]; then