3 CPU_CGROUP="/sys/fs/cgroup/cpu/background"
5 CPU_CONTROL_LIST="indicator net-config"
7 /bin/mkdir -pm 755 $CPU_CGROUP
8 echo $CPU_SHARE > $CPU_CGROUP/cpu.shares
9 for list in $CPU_CONTROL_LIST; do
10 pid=`/usr/bin/pgrep $list`
11 if [ "z${pid}" != "z" ]; then
12 echo $pid > $CPU_CGROUP/cgroup.procs