mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Rastrack option removed.
This commit is contained in:
parent
4dfec27209
commit
215018fa5f
38
raspi-config
38
raspi-config
@ -982,30 +982,6 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_rastrack() {
|
|
||||||
whiptail --msgbox "\
|
|
||||||
Rastrack (http://rastrack.co.uk) is a website run by Ryan Walmsley
|
|
||||||
for tracking where people are using Raspberry Pis around the world.
|
|
||||||
If you have an internet connection, you can add yourself directly
|
|
||||||
using this tool. This is just a bit of fun, not any sort of official
|
|
||||||
registration.\
|
|
||||||
" 20 70 1
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 0;
|
|
||||||
fi
|
|
||||||
UNAME=$(whiptail --inputbox "Username / Nickname For Rastrack Addition" 20 70 3>&1 1>&2 2>&3)
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
EMAIL=$(whiptail --inputbox "Email Address For Rastrack Addition" 20 70 3>&1 1>&2 2>&3)
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
curl --data "name=$UNAME&email=$EMAIL" http://rastrack.co.uk/api.php
|
|
||||||
printf "Hit enter to continue\n"
|
|
||||||
read TMP
|
|
||||||
}
|
|
||||||
|
|
||||||
get_camera() {
|
get_camera() {
|
||||||
CAM=$(get_config_var start_x $CONFIG)
|
CAM=$(get_config_var start_x $CONFIG)
|
||||||
if [ $CAM -eq 1 ]; then
|
if [ $CAM -eq 1 ]; then
|
||||||
@ -1421,10 +1397,9 @@ if [ "$INTERACTIVE" = True ]; then
|
|||||||
"4 Wait for Network at Boot" "Choose whether to wait for network connection during boot" \
|
"4 Wait for Network at Boot" "Choose whether to wait for network connection during boot" \
|
||||||
"5 Internationalisation Options" "Set up language and regional settings to match your location" \
|
"5 Internationalisation Options" "Set up language and regional settings to match your location" \
|
||||||
"6 Enable Camera" "Enable this Pi to work with the Raspberry Pi Camera" \
|
"6 Enable Camera" "Enable this Pi to work with the Raspberry Pi Camera" \
|
||||||
"7 Add to Rastrack" "Add this Pi to the online Raspberry Pi Map (Rastrack)" \
|
"7 Overclock" "Configure overclocking for your Pi" \
|
||||||
"8 Overclock" "Configure overclocking for your Pi" \
|
"8 Advanced Options" "Configure advanced settings" \
|
||||||
"9 Advanced Options" "Configure advanced settings" \
|
"9 About raspi-config" "Information about this configuration tool" \
|
||||||
"0 About raspi-config" "Information about this configuration tool" \
|
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
RET=$?
|
RET=$?
|
||||||
if [ $RET -eq 1 ]; then
|
if [ $RET -eq 1 ]; then
|
||||||
@ -1437,10 +1412,9 @@ if [ "$INTERACTIVE" = True ]; then
|
|||||||
4\ *) do_boot_wait ;;
|
4\ *) do_boot_wait ;;
|
||||||
5\ *) do_internationalisation_menu ;;
|
5\ *) do_internationalisation_menu ;;
|
||||||
6\ *) do_camera ;;
|
6\ *) do_camera ;;
|
||||||
7\ *) do_rastrack ;;
|
7\ *) do_overclock ;;
|
||||||
8\ *) do_overclock ;;
|
8\ *) do_advanced_menu ;;
|
||||||
9\ *) do_advanced_menu ;;
|
9\ *) do_about ;;
|
||||||
0\ *) do_about ;;
|
|
||||||
*) whiptail --msgbox "Programmer error: unrecognized option" 20 60 1 ;;
|
*) whiptail --msgbox "Programmer error: unrecognized option" 20 60 1 ;;
|
||||||
esac || whiptail --msgbox "There was an error running option $FUN" 20 60 1
|
esac || whiptail --msgbox "There was an error running option $FUN" 20 60 1
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user