iup: only whitespace changes

This commit is contained in:
Ionuț-Alex Oprea 2018-04-25 16:22:40 +02:00
parent 072c2dc4ab
commit 96366e0226

View file

@ -71,8 +71,7 @@ reload ()
local pack
pack=$(get_packages $1)
v "Calling ubus call uci commit for $pack"
for packname in $pack
do
for packname in $pack ; do
ubus call uci commit '{"config":"'$packname'"}'
sleep 1
done
@ -118,9 +117,11 @@ handle_provisioning() {
mkdir $IUPTEMP
fi
touch $IUPCONFFILES
config_get_bool enabled "$config" enabled "$default"
config_get_bool defaultreset "$config" defaultreset
config_get deckey "$config" deckey
if [ "$enabled" -eq 1 ]; then
if [ "$config" == "iup" ]; then
v "Using url received in dhcp options"
@ -131,8 +132,7 @@ handle_provisioning() {
url=${url//\$MAC/$MAC}
v "Downloading from url \"$url\""
while [ $retry -le $RETRYSTOP ]
do
while [ $retry -le $RETRYSTOP ]; do
if [ ${url%%:*} == "tftp" ]; then
tftpfile=${url#*\/\/}
host=${tftpfile%%\/*}
@ -192,15 +192,13 @@ handle_Downloaded_file()
save_usercfg
cd $IUPTEMP
tar xvzf $IUPCONFFILES
for f in $CONFILESLURP
do
for f in $CONFILESLURP ; do
v "File to be applied $f and config $(cat $f)"
uci -f $f import
done
pack=$(get_packages $CONFILESLURP)
v "Packages to be commited: $pack"
for packname in $pack
do
for packname in $pack ; do
uci commit $packname
done
apply_usercfg
@ -532,7 +530,6 @@ main()
touch $IUPMD5
fi
local iupurl
local configurl
local software