Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quintanalibre lime 2020.1 #71

Merged
merged 6 commits into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions quintanalibre.org.ar/generic/files/etc/config/lime-community
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,22 @@ config lime wifi

option adhoc_mcast_rate_2ghz '36000'
option adhoc_mcast_rate_5ghz '24000'

config generic_uci_config system_opts
list uci_set "system.@system[0].timezone=ART3"
list uci_set "system.@system[0].log_ip=10.5.1.4"

config generic_uci_config location
list uci_set "location.settings=location"
list uci_set "location.settings.community_latitude=-31.80461"
list uci_set "location.settings.community_longitude=-64.41609"

config generic_uci_config deferable_reboot
spiccinini marked this conversation as resolved.
Show resolved Hide resolved
list uci_set "deferable-reboot.options.deferable_reboot_uptime=10800"

config generic_uci_config dropbear
list uci_set "dropbear.@dropbear[0].RootPasswordAuth=off"

config run_asset cron_defer_reboot
option asset 'community/cron_defer_reboot'
option when 'ATFIRSTBOOT'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Si anda llegar "a internet" extendemos el plazo de "deferable reboot".
# Es el último recurso para no quedar desconectados del nodo si queda en un estado inaccesible.

internet_gw_ip=8.8.8.8 #FIXME

unique_append()
{
grep -qF "$1" "$2" || echo "$1" >> "$2"
}

unique_append \
"*/10 * * * * ((if ping -c 10 -W 10 $internet_gw_ip &> /dev/null; then awk '{print \$1 + 800}' /proc/uptime > /tmp/deferable-reboot.defer ; fi )&) "\
/etc/crontabs/root




This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.