Cleanup spacing in installer
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
This commit is contained in:
@@ -22,23 +22,23 @@ ui_print "*****************"
|
|||||||
ui_print "Mounting /system"
|
ui_print "Mounting /system"
|
||||||
|
|
||||||
if mount /system; then
|
if mount /system; then
|
||||||
ui_print "/system mounted"
|
ui_print "/system mounted"
|
||||||
else
|
else
|
||||||
# Try to get the block from /etc/recovery.fstab
|
# Try to get the block from /etc/recovery.fstab
|
||||||
block=`cat /etc/recovery.fstab | cut -d '#' -f 1 | grep /system | grep -o '/dev/[^ ]*' | head -1`
|
block=`cat /etc/recovery.fstab | cut -d '#' -f 1 | grep /system | grep -o '/dev/[^ ]*' | head -1`
|
||||||
if [ -n "$block" ] && mount $block /system; then
|
if [ -n "$block" ] && mount $block /system; then
|
||||||
ui_print "Could not mount /system! Aborting..."
|
ui_print "Could not mount /system! Aborting..."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
ui_print "/system mounted"
|
ui_print "/system mounted"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /system/bin/toybox ]; then
|
if [ -f /system/bin/toybox ]; then
|
||||||
UTILS=/system/bin/toybox
|
UTILS=/system/bin/toybox
|
||||||
else
|
else
|
||||||
ui_print "Could not find /system/bin/toybox! Aborting..."
|
ui_print "Could not find /system/bin/toybox! Aborting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -49,24 +49,24 @@ cd system
|
|||||||
unzip -o "$ZIP"
|
unzip -o "$ZIP"
|
||||||
DIRS="addon.d app priv-app framework etc lib"
|
DIRS="addon.d app priv-app framework etc lib"
|
||||||
if [ -d /system/lib64 ]; then
|
if [ -d /system/lib64 ]; then
|
||||||
DIRS="$DIRS lib64"
|
DIRS="$DIRS lib64"
|
||||||
fi
|
fi
|
||||||
for dirs in $DIRS; do
|
for dirs in $DIRS; do
|
||||||
set_perm 0755 $dir
|
set_perm 0755 $dir
|
||||||
for d in `$UTILS find ./$dir -type d`; do
|
for d in `$UTILS find ./$dir -type d`; do
|
||||||
set_perm 0755 $d
|
set_perm 0755 $d
|
||||||
set_owner system system $d
|
set_owner system system $d
|
||||||
done
|
done
|
||||||
for f in `$UTILS find ./$dir -type f`; do
|
for f in `$UTILS find ./$dir -type f`; do
|
||||||
type=$(echo "$f" | sed 's/.*\.//')
|
type=$(echo "$f" | sed 's/.*\.//')
|
||||||
if [ "$type" == "sh" ] || [ "$type" == "$f" ]; then
|
if [ "$type" == "sh" ] || [ "$type" == "$f" ]; then
|
||||||
set_perm 0755 $f
|
set_perm 0755 $f
|
||||||
else
|
else
|
||||||
set_perm 0644 $f
|
set_perm 0644 $f
|
||||||
fi
|
fi
|
||||||
set_owner system system $f
|
set_owner system system $f
|
||||||
set_con system_file $f
|
set_con system_file $f
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
ui_print "Copying files"
|
ui_print "Copying files"
|
||||||
$UTILS cp --preserve=a -r ./* /system/
|
$UTILS cp --preserve=a -r ./* /system/
|
||||||
|
Reference in New Issue
Block a user