d7ae00df3d77e98f1d1c0a0bfc063e907fb10c08
3 # Copyright (C) 2010 Vertical Communications
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 fs_parse_param_action
() {
15 if [ -z "$default" ]; then
16 config_get value
"$cfg" "$(echo $param|tr - _ )"
18 config_get value
"$cfg" "$(echo $param|tr - _ )" "$default"
21 if [ "$param_type" = "bool" ]; then
22 if [ "$value" = "0" ] ||
[ "$value" = "false" ] ||
[ "$value" = "no" ]; then
24 elif [ "$value" = "1" ] ||
[ "$value" = "true" ] ||
[ "$value" = "yes" ]; then
29 fs_set_param
"$param_file" "$param" "$value"
32 fs_to_xml_param_list
() {
41 echo "$param_list" |
{
44 while [ "$list_item" != '[FS-EOF]' ]; do
48 elif [ $i -eq 1 ]; then
49 param_type
="$list_item"
53 fs_parse_param_action
"$cfg" "$param_file" "$param" "$param_type" "$default"