I've switched to bup
authorAndrew Ruthven <puck@catalyst.net.nz>
Wed, 26 Jun 2019 09:43:21 +0000 (21:43 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Wed, 26 Jun 2019 09:43:21 +0000 (21:43 +1200)
NetworkManager/dispatcher.d/20network-shares
debian/control

index 9ecf3d6..aa798ca 100755 (executable)
@@ -36,6 +36,10 @@ case "$2" in
             then
                 echo /usr/lib/etc-obnam/run-backup | at now + 10 minutes
             fi
+            if [ -f /usr/lib/etc-bup/run-backup ]
+            then
+                echo /usr/lib/etc-bup/run-backup | at now + 10 minutes
+            fi
         else
             echo "On a foreign network, make sure we clean up" >> /tmp/nm.set
             for user in $(ls /home/*/.gtk-bookmarks | sed 's/\/home\///; s/\/.*//')
@@ -45,6 +49,7 @@ case "$2" in
 
             /etc/init.d/autofs stop
             killall obnam
+            killall bup
             for x in $(mount | grep Network | sed 's/^.* on //; s/ type .*//' | sort -r); do umount -l $x; done
         fi
 
index 4b75372..20105d5 100644 (file)
@@ -11,6 +11,6 @@ Vcs-Browser: http://git.etc.gen.nz/?p=laptop-tools.git;a=summary
 Package: etc-laptop-tools
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, at
-Recommends: etc-obnam, autofs, network-manager
+Recommends: etc-bup, autofs, network-manager
 Description: Behind the scenes tools to make laptops more useful
  Hook for NetworkManager and aufs.