Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ingo-FP-Angel
Ingo-FP-Angel / install_anbox.sh
Created November 26, 2018 08:53
(Re-)Install anbox and adb on Ubuntu Touch (incl. freeing space on system image)
#!/bin/bash -x
SUDO=''
if (( $EUID != 0 )); then
SUDO='sudo'
fi
$SUDO mount -o rw,remount /
$SUDO rm -r /var/cache/apt
$SUDO tune2fs -m 0 /dev/loop0
@Ingo-FP-Angel
Ingo-FP-Angel / fix_aethercast_apparmor.sh
Last active January 3, 2019 13:25
Add missing aethercast setting for apparmor in Ubuntu Touch 16.04 (xenial)
#!/bin/bash -x
if (( $EUID != 0 )); then
FULLFILENAME=$(readlink -e $0)
sudo -i "$FULLFILENAME"
exit
fi
if !(grep -q "aethercast" /etc/apparmor.d/sbin.dhclient); then
echo "Updating /etc/apparmor.d/sbin.dhclient"