forked from freifunk-franken/firmware
"admin.sh" remove outdoor information
This commit is contained in:
parent
616c298119
commit
2aa4ff1360
|
@ -125,14 +125,6 @@ set_location() {
|
||||||
uci commit
|
uci commit
|
||||||
}
|
}
|
||||||
|
|
||||||
set_outdoor() {
|
|
||||||
local OUTDOOR="$1"
|
|
||||||
check bool "$OUTDOOR" || return 1
|
|
||||||
uci set site.location=location
|
|
||||||
uci set site.location.outdoor="$OUTDOOR"
|
|
||||||
uci commit
|
|
||||||
}
|
|
||||||
|
|
||||||
set_direction() {
|
set_direction() {
|
||||||
local DIRECTION="$@"
|
local DIRECTION="$@"
|
||||||
DIRECTION=$(echo "$DIRECTION" | tr "nesw" "NESW") || return 1
|
DIRECTION=$(echo "$DIRECTION" | tr "nesw" "NESW") || return 1
|
||||||
|
@ -199,10 +191,6 @@ case "$ACTION" in
|
||||||
set_location $@
|
set_location $@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
outdoor)
|
|
||||||
set_outdoor $@
|
|
||||||
;;
|
|
||||||
|
|
||||||
direction)
|
direction)
|
||||||
set_direction $@
|
set_direction $@
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue