Last active
April 7, 2020 16:40
-
-
Save quantum77/39dd496abf0d83d1eee80d07e0641ddb to your computer and use it in GitHub Desktop.
An extension to Lunar's Tesla scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin | |
# Changed from /home/ because a factory reset will wipe out Lunars in /home/ but will remain in /var/ | |
export homeOfLunars="/var/lunars" | |
# Turn on/off firewall to lock out Tesla (true/false) | |
export FIREWALL_ON="true" | |
# Copy tokens from CID to IC since you can always SSH to IC (true/false) | |
export TOKENS_IC="true" | |
# Copy tokens from CID to your home httpd server. (true/false) | |
# (Must set up httpd server with save-tokens.php in root and set next param) | |
export TOKENS_PHP="true" | |
## tokens-to-php.sh | |
# Save src/save-tokens.php to your public server | |
export urlToTokensPHP="https://example.com/tesla/save-tokens.php" | |
## create-accounts.sh | |
# Recommend you fill this out for easier SSH to your car | |
export keyToSaveToCar="ssh-rsa blah blah" | |
export accountUserToSaveToCar="carl" | |
export accountPassToSaveToCar="SuperSecret" | |
## reverse-tunnel.sh | |
# Could be used on other files in the future | |
export nonStandardPort=$(cut -c 14-17 </var/etc/vin) | |
## vitals-to-php.sh | |
# Save src/save-vitals.php to your public server | |
export urlToVitalsPHP="https://example.com/tesla/save-vitals.php" | |
## reverse-tunnel.sh | |
export reverseTunnelServer="[email protected] -p 9041" | |
## save-key-over-ssh.sh | |
export saveTokenOverSshFile="tesla-keys.txt" | |
export saveTokenOverSshServer="[email protected] -p 9041" | |
scheduledScripts=( | |
# "$homeOfLunars/scripts/everyBoot/log-to-mem.sh" | |
"$homeOfLunars/scripts/everyBoot/mount-modfiles.sh" | |
"$homeOfLunars/scripts/everyBoot/open-diag-port.sh" | |
"$homeOfLunars/scripts/everyBoot/create-accounts.sh" | |
# "$homeOfLunars/scripts/everyBoot/check-for-updates.sh" | |
"$homeOfLunars/scripts/everyBoot/speed-sensitive-volume.sh" | |
"$homeOfLunars/scripts/everyBoot/autopilot-autosteer.sh" | |
"$homeOfLunars/scripts/everyBoot/firewall-tesla.sh" | |
"$homeOfLunars/scripts/everyBoot/copy-tokens.sh" | |
"$homeOfLunars/scripts/everyBoot/reverse-tunnel.sh" | |
"$homeOfLunars/scripts/everyBoot/save-key-over-ssh.sh" | |
"$homeOfLunars/scripts/everyBoot/vpn-over-cell.sh" | |
"$homeOfLunars/scripts/everyBoot/listen-for-code.sh" | |
# "$homeOfLunars/scripts/everyBoot/freedomevstart.sh" | |
# "$homeOfLunars/scripts/everyBoot/wake-bench.sh" | |
) | |
everyFiveMinuteScripts=( | |
"$homeOfLunars/scripts/everyFiveMinutes/open-wifi.sh" | |
"$homeOfLunars/scripts/everyFiveMinutes/startstopvpn.sh" | |
"$homeOfLunars/scripts/everyFiveMinutes/vitals-to-php.sh" | |
"$homeOfLunars/scripts/everyFiveMinutes/add-swblock.sh" | |
"$homeOfLunars/scripts/everyFiveMinutes/eggwot.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment