Permalink
Browse files

removed "sudo" dependency (sudo as root == su)

  • Loading branch information...
1 parent d5009b3 commit 6e2f70fd722d7f2eed64c1a4db0ced77dd44935d Filipe Pina committed Mar 15, 2012
@@ -4,7 +4,7 @@ Name: WifiSMS
Package: org.thebigboss.wifisms
Conflicts: com.treason.treasonsmstwo
Replaces: com.treason.treasonsmstwo
-Depends: firmware (>= 4.0), shell-cmds, sudo, coreutils-bin, coreutils
+Depends: firmware (>= 4.0), shell-cmds, coreutils-bin, coreutils
Section: Messaging
Version: VERSION
Architecture: iphoneos-arm
@@ -4,7 +4,7 @@ Name: WifiSMS
Package: org.thebigboss.wifisms
Conflicts: com.treason.treasonsmstwo
Replaces: com.treason.treasonsmstwo
-Depends: firmware (>= 4.0), mobilesubstrate, sbsettings, shell-cmds, sudo, coreutils-bin, coreutils
+Depends: firmware (>= 4.0), mobilesubstrate, sbsettings, shell-cmds, coreutils-bin, coreutils
Section: Messaging
Version: VERSION
Architecture: iphoneos-arm
@@ -6,5 +6,5 @@ then
killall WifiSMS;
else
touch /tmp/WifiSMS-ON;
- sudo -u mobile nohup /User/Library/WifiSMS/WifiSMS "$*" > /dev/null 2>&1 &
+ su - mobile -c "nohup /User/Library/WifiSMS/WifiSMS \"$*\" > /dev/null 2>&1 &"
fi

0 comments on commit 6e2f70f

Please sign in to comment.