View Single Post
Posts: 29 | Thanked: 4 times | Joined on Apr 2010
#566
After run speedpatch.sh i got like this. This is correct with some errors.

------------
Nokia-N900:/home/user# ./speedpatch.sh

Patching [/root/.bashrc]...

Adding the patch...
if [ "$PS1" ] ; then
mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
echo $$ > /dev/cgroup/cpu/user/$$/tasks
echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
fi

Patching [/etc/rc.local]...

cat: can't open '/etc/rc.local': No such file or directory
Adding the patch...
cat: can't open '/etc/rc.local': No such file or directory
Making backup of /etc/rc.local in /etc/rc.local.backup.txt
cp: cannot stat '/etc/rc.local': No such file or directory
sed: /etc/rc.local: No such file or directory

#========== 200 lines kernel patch alternative ============
mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
#====================================

Making [/etc/rc.local] executable


Creating [/usr/local/sbin/cgroup_clean]...

#!/bin/sh
if [ "$*" != "/user" ]; then
rmdir /dev/cgroup/cpu/$*
fi

Making [/usr/local/sbin/cgroup_clean] executable

DONE. The patch has been applied. Restart your computer...
----------
TQ