All pastes #30662 Raw Edit

Miscellany

public text v1 · immutable
#30662 ·published 2005-11-23 19:31 UTC
rendered paste body
root@OpenWrt:~# more /etc/init.d/S40network 
#!/bin/sh
case "$1" in
  start|restart)
    wifi up
    ifup lan
    ifup wan 
    ifup wifi


    for route in $(nvram get static_route); do {
      eval "set $(echo $route | sed 's/:/ /g')"
      $DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5
    } done
    ;;
esac