Browse Source

Merge pull request #16 from anudanan/master

Fix for bad handling of oscam settings
pull/17/head
Gorgone 5 years ago
committed by GitHub
parent
commit
6185d23e31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      support/functions/_misc

12
support/functions/_misc

@ -581,19 +581,19 @@ save_config(){
done done
[ -f "$menudir/$_toolchainname.save" ] && rm -rf "$menudir/$_toolchainname.save" [ -f "$menudir/$_toolchainname.save" ] && rm -rf "$menudir/$_toolchainname.save"
printf "enabled=\"${enabled[*]}\"" >"$menudir/$_toolchainname.save" printf "enabled=\"${enabled[*]}\"\n" >"$menudir/$_toolchainname.save"
printf "disabled=\"${disabled[*]}\"">>"$menudir/$_toolchainname.save" printf "disabled=\"${disabled[*]}\"\n">>"$menudir/$_toolchainname.save"
if [ "$stapi_allowed" == "1" ] if [ "$stapi_allowed" == "1" ]
then then
if [ "${#stapivar}" -gt "15" ] if [ "${#stapivar}" -gt "15" ]
then then
printf "stapivar=\"$stapivar\"">>"$menudir/$_toolchainname.save" printf "stapivar=\"$stapivar\"\n">>"$menudir/$_toolchainname.save"
printf "usevars=\"$usevars $addstapi\"" >>"$menudir/$_toolchainname.save" printf "usevars=\"$usevars $addstapi\"\n" >>"$menudir/$_toolchainname.save"
else else
printf "usevars=\"$usevars\"" >>"$menudir/$_toolchainname.save" printf "usevars=\"$usevars\"\n" >>"$menudir/$_toolchainname.save"
fi fi
else else
printf "usevars=\"$usevars\"" >>"$menudir/$_toolchainname.save" printf "usevars=\"$usevars\"\n" >>"$menudir/$_toolchainname.save"
fi fi
}; };

Loading…
Cancel
Save