Skip to content

Commit

Permalink
Update overlayrw
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Jan 17, 2024
1 parent 59f4a25 commit 9ff5172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/common/overlayrw
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ if [ -d $1 ] && [ ! -L $1 ];then
mkdir -p $MODPATH$1
#setfattr -n trusted.overlay.opaque -v y $MODPATH$1
mkdir -p $MODPATH/zption/tmp$1
mount -t overlay kakathic -o upperdir=$MODPATH$1,lowerdir=$1,workdir=/$MODPATH/zption/tmp$1 $1 && echo "Mount: $1 done." || echo "Mount: $1 failure."
mount -t overlay kakathic -o upperdir=$MODPATH$1,lowerdir=$1,workdir=/$MODPATH/zption/tmp$1 $1 && echo "Mount: $1 done" || echo "Mount: $1 failure !"
elif [ -z $1 ] || [ "$1" == "--help" ];then
echo "Use: overlayrw [path_folder_rw]"
echo "Instruct: overlayrw /system/app"
echo "After running the command, you can edit files in that directory, except that some links cannot be edited."
echo "After running the command, you can edit files in that directory"
else
echo "Error: Path is not directory, link";
exit 1
Expand Down

0 comments on commit 9ff5172

Please sign in to comment.