Diff for /elwix/config/etc/Attic/rc.initial between versions 1.2 and 1.2.2.2

version 1.2, 2012/10/12 08:22:44 version 1.2.2.2, 2013/01/23 14:17:16
Line 9  trap : 2 Line 9  trap : 2
 trap : 3  trap : 3
 trap : 18  trap : 18
 #exec </dev/console >/dev/console 2>/dev/console  #exec </dev/console >/dev/console 2>/dev/console
MAGIC_MENU="unhide menu, now!"MAGIC_MENU="menu"
   
 menu()  menu()
 {  {
Line 19  menu() Line 19  menu()
         echo "*********************"          echo "*********************"
         echo "0) Logout"          echo "0) Logout"
         echo "1) Interfaces: assign network ports"          echo "1) Interfaces: assign network ports"
        echo "2) Set up LAN IP address"        echo "2) Reset root password"
         echo "3) Reset webGUI password"          echo "3) Reset webGUI password"
         echo "4) Reset to factory defaults"          echo "4) Reset to factory defaults"
         echo "5) Reboot system"          echo "5) Reboot system"
Line 39  menu() Line 39  menu()
                         exit                          exit
                         ;;                          ;;
                 1)                  1)
                           IFACES=$(ifconfig -l)
                           echo
                           echo "Available interfaces: $IFACES"
                           read -p " +Which from them: " iface
                           read -p " +Name of interface $iface []: " name
                           read -p " +Setup management vlan 4093 on $iface? [no|yes]: " mgmt
                           read -p " +IPv4 address/mask of interface $iface [dhcp|x.x.x.x/x]: " ip4
                           read -p " +IPv6 address/mask of interface $iface [auto|x:x:x::x/x]: " ip6
                           if [ X"$mgmt" = X"yes" -o X"$mgmt" = "y" ]; then
                                   echo $iface >/etc/mylan
                           fi
                           ifconfig $iface description "$name" up
                           if [ -n "$ip4" ]; then
                                   if [ X"$ip4" != X"dhcp" ]; then
                                           ifconfig $iface inet alias $ip4
                                   else
                                           dhclient $iface
                                   fi
                           fi
                           if [ -n "$ip6" ]; then
                                   ifconfig $iface inet6 auto_linklocal -ifdisabled
                                   if [ X"$ip6" != X"auto" ]; then
                                           ifconfig $iface inet6 -accept_rtadv
                                           ifconfig $iface inet6 alias $ip6
                                   else
                                           ifconfig $iface inet6 accept_rtadv
                                   fi
                           fi
                         ;;                          ;;
                 2)                  2)
                           passwd root
                         ;;                          ;;
                 3)                  3)
                         ;;                          ;;

Removed from v.1.2  
changed lines
  Added in v.1.2.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>