This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# function for .bashrc to facilitate (extraction of archive|archiving of file) | |
# extract based on the file extension. | |
function extract(){ | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xvjf $1 ;; | |
*.tar.gz) tar xvzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) unrar x $1 ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mount your USB | |
mkdir /tmp/usb | |
mount *your usb* | |
cd /tmp/usb | |
# As we speak latest version is apk-tools-static-2.9.1-r0. If you get 404 you will need to change it with actual version. | |
wget http://uk.alpinelinux.org/alpine/latest-stable/main/aarch64/apk-tools-static-2.9.1-r0.apk | |
tar -xzf apk-tools-static-*.apk | |
# Pulling the "stage3" binaries; |