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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Mar 19 12:30:49 EET 2007
Author: schulhof
Date: 2007-03-19 12:30:40 +0200 (Mon, 19 Mar 2007)
New Revision: 10624

Modified:
   projects/haf/trunk/osso-af-startup/services/real-af-startup
Log:
Added wizback ability to advance several steps


Modified: projects/haf/trunk/osso-af-startup/services/real-af-startup
===================================================================
--- projects/haf/trunk/osso-af-startup/services/real-af-startup	2007-03-19 09:59:30 UTC (rev 10623)
+++ projects/haf/trunk/osso-af-startup/services/real-af-startup	2007-03-19 10:30:40 UTC (rev 10624)
@@ -69,8 +69,7 @@
     fi
 
     if [ -x /usr/bin/wizback ]; then
-      echo "wizback: Advancing"
-      dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance
+      dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance uint32:1
     fi
 
     # Give Backup a chance to restore settings automatically
@@ -83,24 +82,21 @@
       $AF_INIT_DIR/osso-connectivity-ui-gwwizard-startup.sh start
     fi
 
-    if [ -x /usr/bin/wizback ]; then
-      echo "wizback: Advancing"
-      dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance
-    fi
-
     if [ -f $TMPDIR/launch-operator-wizard.tmp \
          -a ! -f /tmp/suw-user-cancelled.tmp ]; then
       if [ -x $AF_INIT_DIR/operator-wizard.sh ]; then
+        if [ -x /usr/bin/wizback ]; then
+          dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance uint32:1
+        fi
         $AF_INIT_DIR/operator-wizard.sh start
       fi
       rm -f $TMPDIR/launch-operator-wizard.tmp
     fi
 
     if [ -x /usr/bin/wizback ]; then
-      echo "wizback: Advancing"
-      dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance
+      # Can advance 2 positions here, since any position past the end has no effect
+      dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.advance uint32:2
       sleep 1
-      echo "wizback: Quitting"
       dbus-send --print-reply --system --dest=org.maemo.WizardBackground / org.maemo.WizardBackground.quit
     fi
 


More information about the maemo-commits mailing list