|
|
|
UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/Lokiap-webgui/master/"
|
|
|
|
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh
|
|
|
|
source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh
|
|
|
|
|
|
|
|
function update_system_packages() {
|
|
|
|
install_log "Updating sources"
|
|
|
|
sudo apt-get update || install_error "Unable to update package list"
|
|
|
|
}
|
|
|
|
|
|
|
|
function install_dependencies() {
|
|
|
|
install_log "Installing required packages"
|
|
|
|
echo "Install public key used to sign the lokinet binaries."
|
|
|
|
curl -s https://deb.imaginary.stream/public.gpg | sudo apt-key add -
|
|
|
|
echo "deb https://deb.imaginary.stream $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/imaginary.stream.list
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install lighttpd $php_package git hostapd dnsmasq vnstat resolvconf lokinet || install_error "Unable to install dependencies"
|
|
|
|
}
|
|
|
|
|
|
|
|
#Remove NetworkManager, install dhcpd, create symlink to resolvconf.
|
|
|
|
|
|
|
|
function check_for_networkmananger() {
|
|
|
|
if [ -f /etc/NetworkManager/NetworkManager.conf ]; then
|
|
|
|
sudo apt-get purge network-manager
|
|
|
|
sudo apt-get install dhcpcd5
|
|
|
|
sudo rm /etc/resolv.conf
|
|
|
|
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
install_raspap
|