Advertising
- Anonymous
- Monday, September 17th, 2007 at 10:24:37am UTC
- #!/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 0.0.0.0 promisc
- /usr/sbin/brctl addif br0 ath0
- /sbin/dhclient br0
- /usr/sbin/brctl addif br0 tap0
- ifconfig tap0 <192.168.0.18> up
- bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
- route add -host <192.168.0.17> dev tap0
- arp -Ds <192.168.0.17> ath0 pub
- exit 0
- I get the following error when booting right before kdm takes over, of course thats always when rc.local runs. I get the same error when I run it from a terminal...
- [email protected]:~$ /etc/rc.local
- /etc/rc.local: 13: Syntax error: newline unexpected
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.