From 26c44e14332830ead275489262b9b6b9352d107e Mon Sep 17 00:00:00 2001 From: vimacs Date: Tue, 9 Feb 2010 22:10:01 +0100 Subject: [PATCH] added -j, join | mounts aditional folder into the union modified: testdata/scripts/pnd_run.sh --- testdata/scripts/pnd_run.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testdata/scripts/pnd_run.sh b/testdata/scripts/pnd_run.sh index 7a96707..38af244 100755 --- a/testdata/scripts/pnd_run.sh +++ b/testdata/scripts/pnd_run.sh @@ -19,7 +19,7 @@ #cleanup # parse arguments -TEMP=`getopt -o p:e:a:b:s:m::u::n::x:: -- "$@"` +TEMP=`getopt -o p:e:a:b:s:m::u::n::x: -- "$@"` if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi @@ -36,6 +36,7 @@ while true ; do -m) echo "mount";mount=1;shift 2;; -u) echo "umount";umount=1;shift 2;; -x) echo "no x";nox=1;shift 2;; + -j) echo "join/ also mount those folders";append=$2;shift 2;; -a) case "$2" in "") echo "no arguments"; shift 2 ;; @@ -155,10 +156,11 @@ if [ ! $umount ]; then echo "$mntline" $mntline #mount the pnd/folder echo "mounting union!" - if [ $FILESYSTEM = vfat ]; then # use noplink on fat, dont on other fs's - sudo mount -t aufs -o exec,noplink,dirs=$MOUNTPOINT/pandora/appdata/$BASENAME=rw+nolwh:/mnt/pnd/$BASENAME=rr none /mnt/utmp/$BASENAME # put union on top + if [ $FILESYSTEM = vfat ]; then # use noplink on fat, dont on other fs's + #append is fucking dirty, need to clean that up + sudo mount -t aufs -o exec,noplink,dirs=$MOUNTPOINT/pandora/appdata/$BASENAME=rw+nolwh:/mnt/pnd/$BASENAME=rr$append none /mnt/utmp/$BASENAME # put union on top else - sudo mount -t aufs -o exec,dirs=$MOUNTPOINT/pandora/appdata/$BASENAME=rw+nolwh:/mnt/pnd/$BASENAME=rr none /mnt/utmp/$BASENAME # put union on top + sudo mount -t aufs -o exec,dirs=$MOUNTPOINT/pandora/appdata/$BASENAME=rw+nolwh:/mnt/pnd/$BASENAME=rr$append none /mnt/utmp/$BASENAME # put union on top fi else -- 2.39.5