diff options
author | Csaba Henk | 2015-09-12 17:59:47 +0200 |
---|---|---|
committer | Csaba Henk | 2015-09-12 18:29:18 +0200 |
commit | 9e6c3e9c022cb0c0b6dd68013d766161286530da (patch) | |
tree | 9bfc8e6d15e8c8f46aba79a0419bba19aa701f29 /auxmount_hook | |
download | aur-9e6c3e9c022cb0c0b6dd68013d766161286530da.tar.gz |
Initial commit
Diffstat (limited to 'auxmount_hook')
-rw-r--r-- | auxmount_hook | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/auxmount_hook b/auxmount_hook new file mode 100644 index 000000000000..ced0b1eff325 --- /dev/null +++ b/auxmount_hook @@ -0,0 +1,16 @@ +run_latehook() { + local _postfix _d + + if [ ! -z "$auxmnt" ]; then + for _d in /*; do + case $_d in + /new_root*) + _postfix=${_d#/new_root} + if [ ! -z "$_postfix" ] && [ -d /new_root/"$auxmnt"/root$_postfix ]; then + mount --bind $_d /new_root/"$auxmnt"/root$_postfix + fi + ;; + esac + done + fi +} |