Fixed boot scripts
authorkibergus <kibergus@gmail.com>
Wed, 23 Jun 2010 08:17:49 +0000 (08:17 +0000)
committerkibergus <kibergus@gmail.com>
Wed, 23 Jun 2010 08:17:49 +0000 (08:17 +0000)
git-svn-id: file:///svnroot/ussd-widget/trunk@40 d197f4d6-dc93-42ad-8354-0da1f58e353f

ussd4all/debian/changelog
ussd4all/debian/postinst
ussd4all/debian/postrm
ussd4all/debian/prerm [new file with mode: 0644]
ussd4all/rtcom/rtcompatcher.py
ussd4all/src/event.d/ussdd

index 0c5459c..9454445 100644 (file)
@@ -1,7 +1,5 @@
-ussd4all (0.0.0-1) unstable; urgency=low
+ussd4all (0.0.1-1) unstable; urgency=low
 
-  * Reincarnation of ussd-common with GUI and hack, that disables nokia's USSD
-    implementation
-
- -- Alexey Guseynov <kibergus@gmail.com>  Tue,  8 Jun 2010 17:21:05 +0000
+  * librtcom patcher from Dani Church and fixed event.d script
+ -- Alexey Guseynov <kibergus@gmail.com>  Tue,  23 Jun 2010 11:21:05 +0003
 
index 5489aab..280d3fd 100644 (file)
@@ -5,7 +5,5 @@ pkill rtcom-call-ui
 
 chmod +s /usr/bin/pnatd
 
-export DISPLAY=:0.0
-exec su user -c "run-standalone.sh /usr/bin/ussdd" &
+start ussdd
 
-dbus-send --system --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"http://kibergus.su/ussd4all.php"
index 93a6a7a..b92c88c 100644 (file)
@@ -2,5 +2,4 @@
 if [ -f /usr/lib/librtcom-call-ui.so.0.0.0.orig ] ; then
     mv /usr/lib/librtcom-call-ui.so.0.0.0.orig /usr/lib/librtcom-call-ui.so.0.0.0
 fi
-pkill ussdd
 return 0
diff --git a/ussd4all/debian/prerm b/ussd4all/debian/prerm
new file mode 100644 (file)
index 0000000..4c53d71
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+stop ussdd
+pkill ussdd
+return 0
index 450defe..9da9731 100644 (file)
@@ -73,7 +73,7 @@ class Patcher:
         f.close()
 
 if __name__ == '__main__':
-    import sys, os, shutil
+    import sys, os, shutil, subprocess
 
     library = '/usr/lib/librtcom-call-ui.so.0.0.0'
 
@@ -85,13 +85,17 @@ if __name__ == '__main__':
 
     if not patcher.check_md5sum(library):
         if not patcher.check_data(library):
-            print "Your %s is not recognized. So I won't patch it." % (library,)
-            sys.exit(1)
+            message = "Your %s is not recognized. So I won't patch it." % (library,)
+           subprocess.call(["dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:\""+message+"\" uint32:0 string:\"OK\""],shell=True)
+           print message       
+           sys.exit(1)
         if len(sys.argv) > 1 and sys.argv[1] == '--force':
-            print "Patching an unrecognized %s. Please test your system before rebooting." % (library,)
+            message = "Patching an unrecognized %s. Please test your system before rebooting." % (library,)
+           print message           
         else:
            message = "Your %s is not recognized, but it seems to match the patterns.\nRun '%s --force' to try patching anyway, but understand that\nTHIS MAY BREAK YOUR SYSTEM.  If you do, test your system thoroughly before rebooting." % (library,library,sys.argv[0])
            subprocess.call(["dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:\""+message+"\" uint32:0 string:\"OK\""],shell=True)
+           print message
            sys.exit(1)
 
     shutil.copy2(library, library+'.orig')
index 39c3c28..2a45c85 100644 (file)
@@ -5,6 +5,6 @@ respawn limit 15 3
 
 script
        export DISPLAY=:0.0
-        exec su user -c "run-standalone.sh /usr/bin/ussdd"&
+        exec su user -c "run-standalone.sh /usr/bin/ussdd"
        sleep 5
 end script