blob: b038fab3a28898b5fa174c669660a00571a21bcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
#
# This scripts fix /sys/devices... files permissions for ThinkGui
#
cd /sys/devices/system/cpu
for cpudir in `ls | grep "cpu[[:digit:]]"` ; do
chmod 666 "$cpudir/cpufreq/scaling_governor"
chmod 666 "$cpudir/cpufreq/scaling_setspeed"
chmod 666 "$cpudir/cpufreq/scaling_max_freq"
chmod 666 "$cpudir/cpufreq/scaling_min_freq"
done
cd /sys/devices/platform/smapi
for batdir in `ls | grep "BAT[[:digit:]]"` ; do
chmod 666 "$batdir/stop_charge_thresh"
done
|