[maemo-commits] [maemo-commits] r10964 - projects/haf/trunk/osso-af-startup/services

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Apr 4 15:51:40 EEST 2007
Author: kihamala
Date: 2007-04-04 15:51:40 +0300 (Wed, 04 Apr 2007)
New Revision: 10964

Modified:
   projects/haf/trunk/osso-af-startup/services/real-af-startup
Log:
some tidying up


Modified: projects/haf/trunk/osso-af-startup/services/real-af-startup
===================================================================
--- projects/haf/trunk/osso-af-startup/services/real-af-startup	2007-04-04 12:37:20 UTC (rev 10963)
+++ projects/haf/trunk/osso-af-startup/services/real-af-startup	2007-04-04 12:51:40 UTC (rev 10964)
@@ -22,40 +22,30 @@
 
 start_input()
 {
-  ENABLE_FLAG=0
-  AF_INIT=/etc/osso-af-init
+  # we need to start VKB for the wizard...
+  if [ -f $AF_INIT_DIR/keyboard.defs ]; then
+    source $AF_INIT_DIR/keyboard.defs
+  fi
 
-	# we need to start VKB for the wizard...
-	if [ -f $AF_INIT/keyboard.defs ]; then
-		source $AF_INIT/keyboard.defs
- 	fi
+  source $AF_INIT_DIR/keyboard.sh start
+  # give VKB some time to start
+  sleep 5
 
-	source $AF_INIT/keyboard.sh start
-	# give VKB some time to start
-	sleep 5
-
-	# start clipboard daemon for the wizard
-	if [ -f $AF_INIT/clipboard.sh ]; then
-		source $AF_INIT/clipboard.sh start
-	fi
+  # start clipboard daemon for the wizard
+  if [ -f $AF_INIT_DIR/clipboard.sh ]; then
+    source $AF_INIT_DIR/clipboard.sh start
+  fi
 }
 
-if [ "$ENABLE_FLAG" = "0" ]; then
-	if [ "x$DISPLAY" = "x" ]; then
-			echo "$0: Error, DISPLAY is not defined!"
-			exit 2
-	fi
-fi
-
 if [ -f /etc/osso-af-init/wizard-background-defs.sh ]; then
   source /etc/osso-af-init/wizard-background-defs.sh
 fi
 
 if ! type wizback_method 2> /dev/null; then
-wizback_method() # args ignored
-{
-  return 0
-}
+  wizback_method() # args ignored
+  {
+    return 0
+  }
 fi
 
 case "$1" in


More information about the maemo-commits mailing list