]> git.etc.gen.nz Git - laptop-tools.git/commitdiff
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 9ecf3d626abe21327a0f8f0192ee40a3ec7aa58d..aa798caad8f6345e47e752c54f22df147edc0be5 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 4b75372abd4b28b1d4d3a229420e87487a014b82..20105d5e8645c44cfc4501dc5bcbdd37e3b8d5ba 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.