chiark / gitweb /
Start and stop cfsd when mounting and unmounting the USB keyfob, and remove
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 23 Nov 2002 01:19:06 +0000 (01:19 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 23 Nov 2002 01:19:06 +0000 (01:19 +0000)
the various kernel modules involved on unmount.

mount-keys
umount-keys

index 4e2d1d7..5d3ae88 100755 (executable)
@@ -1,4 +1,5 @@
 #! /bin/sh
+sudo /etc/init.d/cfsd start || sudo /etc/init.d/cfsd restart   # kludge
 grep -q '/mnt/usb ' /proc/mounts || sudo mount /mnt/usb
 sudo losetup /dev/loop0 /mnt/usb/cjwatson
 grep -q '/mnt/usb/keys ' /proc/mounts || sudo mount -t ext2 /dev/loop0 /mnt/usb/keys
index fa45b02..15e2e5a 100755 (executable)
@@ -3,3 +3,5 @@ cdetach cjwatson-keys
 sudo umount /mnt/usb/keys
 sudo losetup -d /dev/loop0
 sudo umount /mnt/usb
+sudo /etc/init.d/cfsd stop
+sudo modprobe -r nfs nfsd sd_mod usb-storage