Commit 87436ed9 authored by sokai's avatar sokai

only two small tweaks (var + coment)

parent ed038bdd
......@@ -10,7 +10,7 @@
SCRIPTNAME='ffp-apdb'
SCRIPTPATH='/etc/init.d/' # _with_ trailing / !
UPDATEURL='http://freifunk-potsdam.de/apdb/ap.php'
UPGRADEURL="http://freifunk-potsdam.de/${SCRIPTNAME}.php"
UPGRADEURL="http://freifunk-potsdam.de/ffp-apdb.php"
##### ----- do NOT edit from this line on ----- #####
## needed for init script; do: https://wiki.openwrt.org/doc/techref/initscripts
......@@ -135,7 +135,7 @@ update() {
upgrade() {
## self-upgrade of this script
NEWSCRIPT="/tmp/${SCRIPTNAME}"
# get and install new version
wget -q -O ${NEWSCRIPT} ${UPGRADEURL} 2>/dev/null
if [ -f ${NEWSCRIPT} ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment