Permalink
Switch branches/tags
Nothing to show
Find file Copy path
177e9d1 Jun 30, 2017
2 contributors

Users who have contributed to this file

@snubbegbg @InsanesTheName
21 lines (18 sloc) 837 Bytes
#!/bin/sh
# Check if root
if [ "$(whoami)" != "root" ]; then
whiptail --msgbox "Sorry you are not root. You must type: sudo sh install.sh" $WT_HEIGHT $WT_WIDTH
exit
fi
# Check if raspi-config is installed
if [ $(dpkg-query -W -f='${Status}' raspi-config 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
whiptail --msgbox "Raspi-config is already installed, try upgrading it within raspi-config..." 10 60
else
wget https://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160527_all.deb -P /tmp
apt-get install libnewt0.52 whiptail parted triggerhappy lua5.1 alsa-utils -y
# Auto install dependancies on eg. ubuntu server on RPI
apt-get install -fy
dpkg -i /tmp/raspi-config_20160527_all.deb
whiptail --msgbox "Raspi-config is now installed, run it by typing: sudo raspi-config" 10 60
fi
exit