pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Advertising: online loans - mobile phones - loans - 3 mobile
Bash paste-bin - collaborative debugging tool View Help

Posted by Anonymous on Tue 30th Oct 00:01 (modification of post by view diff)
download | new post

  1. #!/bin/bash
  2. . /etc/conf.d/net
  3.  
  4. ROUTES=$(/sbin/route -n);
  5. PART=${ROUTES#*UG};
  6. if [[ ! -z "${PART}" ]]; then
  7.         IF=${PART##* }
  8.         if [[ "${USE_UPNP}" != "no" ]]; then
  9.                 if [[ "${IF}" == "${IFNAME}" ]]; then
  10.                         # We are the default route.
  11.                         echo "INTERNAL_INTERFACE=${INTERNAL_INTERFACE}" > /tmp/u                          pnpd
  12.                         echo "EXTERNAL_INTERFACE=${IFNAME}" >> /tmp/upnpd
  13.  
  14.                         touch /tmp/gw6c
  15.  
  16.                         /bin/sv up /service/upnpd
  17.                         /bin/sv up /service/gw6c
  18.                 fi
  19.         fi
  20.  
  21.         /sbin/iptables -t nat -A POSTROUTING -o ${IFNAME} -j MASQUERADE
  22. fi

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me
: