The Following User Says Thank You to karam For This Useful Post: | ||
|
2011-06-17
, 15:16
|
Posts: 34 |
Thanked: 50 times |
Joined on Jun 2010
|
#292
|
#!/bin/sh if [ $USER != root ]; then echo "Error: you need to run this script as root." echo "Exiting..." exit 0 fi mkdir /usr/local/sbin >/dev/null 2>&1 cat <<_EOF >/usr/local/sbin/cgroup_clean #!/bin/sh if [ "$*" != "/user" ]; then rmdir /dev/cgroup/cpu/$* fi _EOF chmod u+x /usr/local/sbin/cgroup_clean cat <<_EOF >/etc/event.d/speedpatch description "speedpatch" console none start on MOUNTS_OK stop on stopping xomap script mkdir -p /dev/cgroup/cpu mount -t cgroup cgroup /dev/cgroup/cpu -o cpu,memory mkdir -m 0777 /dev/cgroup/cpu/user echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent echo "1" > /dev/cgroup/cpu/user/notify_on_release end script _EOF if [ `cat /home/user/.profile |grep /dev/cgroup |wc -l` -eq 0 ] ; then cat <<_EOF >>/home/user/.profile if [ "\$PS1" ] ; then mkdir -p -m 0700 /dev/cgroup/cpu/user/\$\$ echo \$\$ > /dev/cgroup/cpu/user/\$\$/tasks echo "1" > /dev/cgroup/cpu/user/\$\$/notify_on_release fi _EOF fi echo Patch complete, reboot to enable
The Following 4 Users Say Thank You to thingonaspring For This Useful Post: | ||
|
2011-06-17
, 15:51
|
Posts: 182 |
Thanked: 40 times |
Joined on Apr 2010
@ Seatle, WA
|
#293
|
|
2011-06-18
, 13:06
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#294
|
|
2011-06-18
, 13:55
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#295
|
|
2011-06-18
, 16:54
|
|
Posts: 335 |
Thanked: 51 times |
Joined on May 2010
|
#296
|
/home/user # /etc/rc.local
mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: cannot create directory '/dev/cgroup/cpu/user': File exists
|
2011-06-18
, 16:59
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#297
|
The Following User Says Thank You to karam For This Useful Post: | ||
|
2011-06-18
, 23:33
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#300
|
The Following 2 Users Say Thank You to karam For This Useful Post: | ||
Tags |
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe |
|
to the patch
also it has injection wireless modules
My Projects:
Speed Patch & Battery patch
Task-Swapper
Wifi-Pwner (MDK3 GUI)
Hacking Tools
Tutorials
How To Increase Camera Image Quality
How To Unblock Repositories In Forbidden Countries [Like Mine]