From d3712f8faa5444dadee80ba50261d4446ab0b693 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Thu, 3 Apr 2014 22:54:28 +1300 Subject: [PATCH] A few minor tweaks. --- NetworkManager/dispatcher.d/20network-shares | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NetworkManager/dispatcher.d/20network-shares b/NetworkManager/dispatcher.d/20network-shares index d93f86c..2159099 100755 --- a/NetworkManager/dispatcher.d/20network-shares +++ b/NetworkManager/dispatcher.d/20network-shares @@ -8,7 +8,7 @@ gateway=$(ip route show 0.0.0.0/0 | awk '{print $3}') if [ "x$gateway" != "x" ] then ping -c 1 $gateway - mactest=$(arp -n -a $gateway | awk '{print $4}') + mactest=$(arp -n -a $gateway | awk '{print $4}' | head -1) fi date >> /tmp/nm.set @@ -29,9 +29,9 @@ case "$2" in done else echo "On a foreign network, make sure we clean up" >> /tmp/nm.set - for user in $(ls /home/*/bin/network-bookmarks-remove | sed 's/\/home\///; s/\/.*//') + for user in $(ls /home/*/.gtk-bookmarks | sed 's/\/home\///; s/\/.*//') do - sudo -u $user /home/$user/bin/network-bookmarks-remove + sudo -u $user /usr/bin/network-bookmarks-remove done /etc/init.d/autofs stop -- 2.30.2