Skip to content

Commit

Permalink
Shizuku: Add Addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed May 23, 2021
1 parent 263676b commit 6c5bb82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ unzip $file -d $TMPDIR/cache_pkg
chmod -R 0770 $TMPDIR/cache_pkg
echo "- Installing"
. $TMPDIR/cache_pkg/info.config.sh
cp -R $FILE $TOOLKIT/bin/
cp $FILE $TOOLKIT/bin/
chmod 0770 $TOOLKIT/bin/
rm -rf $TMPDIR/cache_pkg
echo "- All done"
14 changes: 3 additions & 11 deletions app/src/main/assets/app_xbin/bin/include/extra_linuxconfigure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,12 @@ configure()
{
echo "progress:[7/10]"
echo "- Setting up mtab ..."
rm -rf $rootfs/etc/mtab
cat <<- EOF > "$rootfs/etc/mtab"
tmpfs / tmpfs rw,seclabel,relatime,size=1397620k,nr_inodes=349405,mode=755 0 0
proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0
sys /sys sysfs rw,seclabel,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1397620k,nr_inodes=349405,mode=755 0 0
tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev,relatime 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
EOF
rm -rf $rootfs/etc/mtab && cp /proc/mounts $rootfs/etc/mtab
echo "- Setting up hostname ... "
echo 'dogeland-vhost' > "$rootfs/etc/hostname"

echo "- Setting up hosts ... "
cat <<- EOF2 > "$rootfs/etc/hosts"
cat <<- EOF > "$rootfs/etc/hosts"
# IPv4.
127.0.0.1 localhost.localdomain localhost
Expand All @@ -34,7 +26,7 @@ configure()
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
EOF2
EOF
echo "progress:[8/10]"
echo "- Setting up locale ... "
LOCALE="C"
Expand Down

0 comments on commit 6c5bb82

Please sign in to comment.