Permalink
Browse files

get infos from settings.cfg

  • Loading branch information...
1 parent f00b5af commit 9b31c0db3076fc761e47e109e5a1306a11d6bb69 @racke racke committed Aug 5, 2001
Showing with 17 additions and 1 deletion.
  1. +17 −1 debian/interchange-ui.config
@@ -3,5 +3,21 @@
# Source debconf library
. /usr/share/debconf/confmodule
-db_input medium interchange-ui/uilocales || true
+# Settings
+if [ -f /etc/interchange/settings.cfg ]; then
+ exec 4</etc/interchange/settings.cfg
+ while read <&4 variable name value; do
+ if [ "$variable" = "Variable" ]; then
+ FLAG=false
+ if [ "$value" = "1" ]; then
+ FLAG=true
+ fi
+ if [ "$name" = "UI_LOCALE" ]; then
+ db_set interchange-ui/defaultlocale $FLAG
+ fi
+ fi
+ done
+fi
+
+db_input low interchange-ui/defaultlocale || [ $? -eq 30 ]
db_go

0 comments on commit 9b31c0d

Please sign in to comment.