Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Anonymous
Monday, September 17th, 2007 at 10:24:37am UTC 

  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. tunctl -t tap0 -u <poeticrpm>
  14. chmod 0666 /dev/net/tun
  15. /usr/sbin/brctl addbr br0
  16. /sbin/ifconfig ath0 0.0.0.0 promisc
  17. /usr/sbin/brctl addif br0 ath0
  18. /sbin/dhclient br0
  19. /usr/sbin/brctl addif br0 tap0
  20. ifconfig tap0 <192.168.0.18> up
  21. bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
  22. route add -host <192.168.0.17> dev tap0
  23. arp -Ds <192.168.0.17> ath0 pub
  24. exit 0
  25.  
  26.  
  27. 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...
  28.  
  29. [email protected]:~$ /etc/rc.local
  30. /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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right
worth-right