Skip to content

Instantly share code, notes, and snippets.

@maditnerd
Last active December 15, 2015 11:18
Show Gist options
  • Save maditnerd/5251728 to your computer and use it in GitHub Desktop.
Save maditnerd/5251728 to your computer and use it in GitHub Desktop.
menu
#!/bin/bash
MENU=$(whiptail --menu "Install Wizard By Sarrailh Remi" 0 0 0 \
"unsecure_samba" "Unsecure access to your PI" \
"lighttpd" "Install LigHTTPd and SQLite" \
"lighttpd_error" "Display PHP Errors" \
"wiringpi" "Install wiringPI" \
"gitsetup" "Setup username and email in git" \
"rootsetup" "Activate Root account" \
"yana" "Install yana (home automation)" \
"yana_perm" "Set Permissions for programs in yana" \
"menu" "Update Menu" \
3>&1 1>&2 2>&3)
RET=$?
if [ $RET -eq 1 ]; then
clear
echo "Have fun and Happy Hacking ! - Sarrailh Remi"
exit 1
else
clear
echo "------------------------"
echo "------------------------"
echo "Downloading Script"
echo "------------------------"
echo "------------------------"
wget -O $MENU http://smarturl.it/$MENU
chmod +x $MENU
echo "-------------------"
echo "-------------------"
echo "Launching Script"
echo "-------------------"
echo "-------------------"
./$MENU
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment