#17759: rc.local can not run when boot
-------------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Keywords: rc.local |
-------------------------+----------------------------------
there is a link S95done directing to /etc/init.d/done in /etc/rc.d/. but
it can not start when boot. and i tried modified "[ -d /tmp/root ]" to "[
-e /dev/root ]" ,but nothing help! my USB wifi adapter rtl8187 can work
after installed the driver kmod-rtl8187 on HG556a (ver A), i put it as a
receiver out of the window,all goes well but when the wifi bitrates ranged
to 54mbps(max 54mbps),the outgoing was blocked,when ping 8.8.8.8,few
packages return. so i have to set it to a low rate via "iw dev wlan1 set
legacy-2.4 11". and i put this cli to /etc/rc.local to want it running
after restarting, but it did nothing. i hate to run the rc.local shell
evey boot. who can help me? many thanks!
----
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=95
boot() {
[ -d /tmp/root ] && mount_root done
# process user commands
[ -f /etc/rc.local ] && {
sh /etc/rc.local
}
# set leds to normal state
. /etc/diag.sh
set_state done there is a link S95done in /etc/rc.d/:
----
--
Ticket URL: <https://dev.openwrt.org/ticket/17759>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets