|
2010-07-17
, 14:29
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#2
|
cp BlueSkyResize.sh.txt /usr/local/bin/BlueSkyResize.sh
chmod +x /usr/local/bin/BlueSkyResize.sh
cp BlueSkyResize.desktop.txt /usr/share/applications/hildon/BlueSkyResize.desktop
|
2010-07-17
, 14:39
|
Posts: 134 |
Thanked: 41 times |
Joined on Mar 2010
|
#3
|
|
2010-11-08
, 19:54
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#4
|
|
2010-11-08
, 20:21
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#6
|
|
2010-11-08
, 22:43
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#8
|
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Name=Enable Injection
Comment=NeoPwn Control Panel
Exec=echo "rmmod wl12xx; rmmod mac80211; rmmod cfg80211; insmod /home/user/MyDocs/neo/compat.ko; insmod /home/user/MyDocs/neo/rfkill_backport.ko; insmod /home/user/MyDocs/neo/cfg80211.ko; insmod /home/user/MyDocs/neo/mac80211.ko; insmod /home/user/MyDocs/neo/wl1251.ko; insmod /home/user/MyDocs/neo/wl1251_spi.ko" | root
Icon=injection_enable
Terminal=true
Type=Application
Categories=Tools
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
X-Text-Domain=NeoPwn
|
2010-11-08
, 23:00
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#9
|
JonWW, another problem...
I've tried what you've said doing the following:
But its still not running as root. If I manually paste it in Xterm, it doesn't work either. If I type 'root' first, then type it, it works. Get what I mean?
What can I do to get around this?
Thanks again.
#!/bin/sh # gain superuser rights. if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi # put your code below
|
2010-11-08
, 23:10
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#10
|
rmmod wl12xx; rmmod mac80211; rmmod cfg80211; insmod /home/user/MyDocs/neo/compat.ko; insmod /home/user/MyDocs/neo/rfkill_backport.ko; insmod /home/user/MyDocs/neo/cfg80211.ko; insmod /home/user/MyDocs/neo/mac80211.ko; insmod /home/user/MyDocs/neo/wl1251.ko; insmod /home/user/MyDocs/neo/wl1251_spi.ko
#!/bin/sh # gain superuser rights. if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi rmmod wl12xx rmmod mac80211 rmmod cfg80211 insmod /home/user/MyDocs/neo/compat.ko insmod /home/user/MyDocs/neo/rfkill_backport.ko insmod /home/user/MyDocs/neo/cfg80211.ko insmod /home/user/MyDocs/neo/mac80211.ko insmod /home/user/MyDocs/neo/wl1251.ko insmod /home/user/MyDocs/neo/wl1251_spi.ko
: not foundh: line 2: does not exist in /proc/modules does not exist in /proc/modules does not exist in /proc/modules ': No such file or directoryer/MyDocs/neo/compat.ko ': No such file or directoryer/MyDocs/neo/rfkill_backport.ko ': No such file or directoryer/MyDocs/neo/cfg80211.ko ': No such file or directoryer/MyDocs/neo/mac80211.ko ': No such file or directoryer/MyDocs/neo/wl1251.ko insmod: error inserting '/home/user/MyDocs/neo/wl1251_spi.ko': -1 Unknown symbol in module
-rwxr-xr-x 1 root staff
Basically i want to the following commands to run as a script when i press the shortcut on my desktop.