add mount and umount wrappers
[hband-tools.git] / user-tools / override / mount
blob3695217d10747475fd4a5eb181bfc6c5c13c6d36
1 #!/bin/bash
3 # mount(8) accepts relative paths in fstab,
4 # so in your private ~/.fstab, you only need to point to your mount sources and targets as paths relative to your $HOME dir.
6 cd || exit $?
8 /bin/mount --fstab ~/.fstab "$@"
9 err=$?
11 if [ $err != 0 ]
12 then
13 echo "trying system fstab" >&2
14 exec /bin/mount "$@"
17 exit $err