提供解决思路: 1、确认命令确实未执行 #sudo cat /sys/devices/platform/smapi/BAT0/start_charge_thresh #是否为5 #sudo cat 100 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh # 是否为100 2、把rc.local里面的命令修改为 eval "echo 5 > /sys/devices/platform/smapi/BAT0/start_charge_thresh" &>/tmp/smapi.log eval "echo 100 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh" &>>/tmp/smapi.log 3、重启查看 /tmp/smapi.log 出错日志 4、rc.local 最好是最后执行,把rc2.d里面的S01rc.local 重命名为S99rc.local
ps:不建议执行 sudo su 这种命令,如果需要开root的shell,给root设置密码,su 命令即可。 2010/8/31 sarahorse <[email protected]> > 各位好,我的电脑是IBM T43,双系统, xp+ubuntu8.04. > > 这个双系统以前是十分稳定的.由于xp中毒一次以后,我买了一个新的ghostxp盘子 > 安装,然后在安装完ibm配置的电池阀门工具以后,我发现一个问题.我在linux下面 > 的smapi出现了工作失效的情况,但是这个失效仅仅出现在开机启动加载的rc.local > 的部分.原本写在这个rc.local 的 > echo 5 > /sys/devices/platform/smapi/BAT0/start_charge_thresh > echo 100 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh > exit 0 > 在开机以后并没有被执行.但是rc2.d里面,是S01rc.local 的.所以每次开机完成以 > 后,我需要手动的sudo su.然后自己输入一次 > echo 5 > /sys/devices/platform/smapi/BAT0/start_charge_thresh才行.请问这 > 个问题该如何解决? > > -- > ubuntu-zh mailing list > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh > -- 邹季春 -------------- 涓�涓���ㄥ�� -------------- 一个HTML附件被移除... URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20100831/d8cbe475/attachment.htm
-- ubuntu-zh mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
