3 # this wrapper mount script makes relative device paths to absolute.
4 # some mount fs types needs them to be absolute, but I'd like to keep
5 # the option to be able to mount different devices in different directories,
6 # only their relative paths being the same.
24 if [[ $fstype =~ abshelper\.
(.
+) ]]
26 fstype_encoded
=${BASH_REMATCH[1]}
27 fstype
=${fstype_encoded//\//.}
29 if [[ $fstype =~
([^.
]+) ]]
31 fstype_master
=${BASH_REMATCH[1]}
43 if [ "${dev:0:1}" != / ]
48 exec /sbin
/"mount.$fstype_master" "$dev" "$moutpoint" -t "$fstype" "${mount_opts[@]}"