You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LabyrinthAP/installers/raspbian.sh

32 lines
1.2 KiB
Bash

6 years ago
UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/Lokiap-webgui/master/"
9 years ago
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh
source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh
9 years ago
function update_system_packages() {
install_log "Updating sources"
9 years ago
sudo apt-get update || install_error "Unable to update package list"
9 years ago
}
function install_dependencies() {
install_log "Installing required packages"
6 years ago
echo "Install public key used to sign the lokinet binaries."
curl -s https://deb.imaginary.stream/public.gpg | sudo apt-key add -
6 years ago
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"
9 years ago
}
#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
}
9 years ago
install_raspap