#!/bin/sh [ -e /etc/rc.defaults ] && . /etc/rc.defaults [ -e /etc/rc.conf ] && . /etc/rc.conf if [ -z $RM_calledfrom ] then RM_calledfrom=0 fi if [ "$RM_calledfrom" != "1" ] then replimenu -f /usr/share/replimenu/netmanual.menu else #Bodge to generate new lines as \n doesn't seem to work.... echo "Generating network" echo "# Generated by cfg_netmanual essid=$RM_essid channel=$RM_channel wepkey=$RM_wepkey ip=$RM_ip gateway=$RM_gateway dns1=$RM_dns1 dns2=$RM_dns2 netmask=$RM_netmask broadcast=$RM_broadcast network_method=netmanual ">/etc/network echo "Finished" export RM_calledfrom= exit 0 fi