Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/data/data/com.termux/files/usr/bin/bash
- ##### ALPINE ### APK INSTALL <PACKAGES> ####
- #### OS LINUX MINIMALIS + RECOMENDED ####
- #### DOWNLOAD RESOURCE : 2MB ####
- ## apt update
- ## apt upgrae
- ## apt install wget proot
- ## pkg install wget proot
- ## clear
- ## mkdir "alpine"
- ## mkdir "alp"
- ## cd "alp"
- ## wget "https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Rootfs/Alpine/armhf/alpine-minirootfs-3.10.0-armhf.tar.gz" -O azzatssins.tar.gz
- ## proot --link2symlink tar -xf azzatssins.tar.gz --exclude='dev' 2> /dev/null||:
- ## echo "nameserver 8.8.8.8" > etc/resolv.conf
- ## echo "nameserver 8.8.4.4" >> etc/resolv.conf
- ## cd ".."
- ## cd "$HOME"
- ##### BOOTING #####
- cd $(dirname $0)
- ## unset LD_PRELOAD in case termux-exec is installed
- unset LD_PRELOAD
- command="proot"
- command+=" --link2symlink"
- command+=" -0"
- command+=" -r alp"
- if [ -n "$(ls -A alpine)" ]; then
- for f in alpine/* ;do
- . $f
- done
- fi
- command+=" -b /dev"
- command+=" -b /proc"
- command+=" -b alp/root:/dev/shm"
- command+=" -w /root"
- command+=" /usr/bin/env -i"
- command+=" HOME=/root"
- command+=" PATH=PATH=/bin:/usr/bin:/sbin:/usr/sbin"
- command+=" TERM=$TERM"
- command+=" LANG=C.UTF-8"
- command+=" /bin/sh --login"
- com="$@"
- if [ -z "$1" ];then
- exec $command
- else
- $command -c "$com"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement