Results 1 to 2 of 2
Whenever I boot up, rc.local fails to execute properly. Originally, I installed an Ubuntu kernel, and put KDE core on top.. as a result I can see the kernel launching ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-16-2007 #1
- Join Date
- Mar 2007
/etc/rc.local syntax error
I get the following error both from the kernel at boot, and from a terminal if I attempt to execute /etc/rc.local:
/etc/rc.local: 13: Syntax error: newline unexpected
Here is my entire /etc/rc.local- notice that line 13 is the first line of the script that is NOT commented out...
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# By default this script does nothing.
tunctl -t tap0 -u <poeticrpm>
chmod 0666 /dev/net/tun
/usr/sbin/brctl addbr br0
/sbin/ifconfig ath0 0.0.0.0 promisc
/usr/sbin/brctl addif br0 ath0
/usr/sbin/brctl addif br0 tap0
ifconfig tap0 <192.168.0.14> up
bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
route add -host <192.168.0.13> dev tap0
arp -Ds <192.168.0.13> ath0 pub
This causes a visible FAIL from the kernel at boot, so im guessing the script exits as soon as the syntax error occurs.
Any ideas on how to fix this?
**EDIT** Oh and also, im not sure if this is supposed to be the case, but the address:
doesnt EXIST in my filesystem. There isnt any tap0 folder, let alone a proxy_arp' file. There is a lo, default and eth0 folder but NOT tap0. As a result (at least I think its a result), Kate has the above address in red. I still think the syntax error is the core of why the rc.local fails...
- 09-16-2007 #2
- Join Date
- May 2004
- arch linux
Your duplicate thread has been deleted because it's against the forum rules to post them:
Please continue your discussion here.
Sorry for any inconvenience...