chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ba523b3
)
mount-keys: Exit non-zero if cfsd fails to restart the second time as well.
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Wed, 30 Jul 2003 23:48:24 +0000
(23:48 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Wed, 30 Jul 2003 23:48:24 +0000
(23:48 +0000)
mount-keys
patch
|
blob
|
history
diff --git
a/mount-keys
b/mount-keys
index 5d3ae88682ccf7ef6d27e7250172cc796ced82c5..dc344e5988f3d7f24ce85bdf070762e764e86548 100755
(executable)
--- a/
mount-keys
+++ b/
mount-keys
@@
-1,5
+1,5
@@
#! /bin/sh
-sudo /etc/init.d/cfsd start || sudo /etc/init.d/cfsd restart
# kludge
+sudo /etc/init.d/cfsd start || sudo /etc/init.d/cfsd restart
|| exit 1
# 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