Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    /etc/rc.local syntax error

    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 its services at boot. The very last thing it tries to load before KDM takes over is my /etc/rc.local.

    I get the following error both from the kernel at boot, and from a terminal if I attempt to execute /etc/rc.local:

    poeticrpm@hybrid:~$ /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...

    #!/bin/sh -e
    # rc.local
    # 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
    # bits.
    # By default this script does nothing.
    tunctl -t tap0 -u <poeticrpm>
    chmod 0666 /dev/net/tun
    /usr/sbin/brctl addbr br0
    /sbin/ifconfig ath0 promisc
    /usr/sbin/brctl addif br0 ath0
    /sbin/dhclient br0
    /usr/sbin/brctl addif br0 tap0
    ifconfig tap0 <> up
    bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
    route add -host <> dev tap0
    arp -Ds <> ath0 pub
    exit 0

    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...

  2. #2
    Join Date
    May 2004
    arch linux
    Hi, GSF1200S

    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...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts