mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-18 17:30:07 +09:00
improve rastrack section
This commit is contained in:
parent
7c1a6a66b0
commit
db470d9912
18
raspi-config
18
raspi-config
@ -357,9 +357,27 @@ do_boot_behaviour() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_rastrack() {
|
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)
|
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)
|
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
|
curl --data "name=$UNAME&email=$EMAIL" http://rastrack.co.uk/api.php
|
||||||
|
printf "Hit enter to continue\n"
|
||||||
|
read TMP
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 is 0 to disable camera, 1 to enable it
|
# $1 is 0 to disable camera, 1 to enable it
|
||||||
|
Loading…
Reference in New Issue
Block a user