repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add mount and umount wrappers
[hband-tools.git]
/
user-tools
/
override
/
mount
blob
3695217d10747475fd4a5eb181bfc6c5c13c6d36
1
#!/bin/bash
2
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.
5
6
cd
||
exit
$?
7
8
/
bin
/
mount
--fstab
~
/
.fstab
"$@"
9
err
=
$?
10
11
if
[
$err
!=
0
]
12
then
13
echo
"trying system fstab"
>&
2
14
exec
/
bin
/
mount
"$@"
15
fi
16
17
exit
$err