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

version 1.2.2.2, 2013/01/23 14:17:16 version 1.2.2.5, 2013/01/24 12:59:22
Line 28  menu() Line 28  menu()
         echo "8) Go to shell"          echo "8) Go to shell"
         [ -r /etc/platform ] && PLATFORM=$(cat /etc/platform)          [ -r /etc/platform ] && PLATFORM=$(cat /etc/platform)
         if [ "${PLATFORM}" != "embedded" ]; then          if [ "${PLATFORM}" != "embedded" ]; then
                echo "9) Install on Hard Drive $PLATFORM";                echo "9) Clone system on other drive";
         fi          fi
         echo          echo
   
Line 48  menu() Line 48  menu()
                         read -p " +IPv4 address/mask of interface $iface [dhcp|x.x.x.x/x]: " ip4                          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                          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                          if [ X"$mgmt" = X"yes" -o X"$mgmt" = "y" ]; then
                                echo $iface >/etc/mylan                                cfexec sh -c "echo $iface >/etc/mylan"
                         fi                          fi
                         ifconfig $iface description "$name" up                          ifconfig $iface description "$name" up
                         if [ -n "$ip4" ]; then                          if [ -n "$ip4" ]; then
Line 72  menu() Line 72  menu()
                         passwd root                          passwd root
                         ;;                          ;;
                 3)                  3)
                           echo
                           read -p "New system webGUI password: " pass
                           read -p "Confirm system webGUI password: " confirm
                           if [ X"$pass" = X"$confirm" ]; then
                                   cfexec xmler -s /elwix/system/password /elwix/etc/config.xml \
                                           $(md5 -qs "$pass")
                           else
                                   echo "Error:: passwords are different ..."
                           fi
                         ;;                          ;;
                 4)                  4)
                           echo
                           echo "Restore factory defaults ..."
                           cfexec rm -rf /elwix/etc/rc.S /elwix/etc/rc.s /elwix/etc/rc.t
                           cfexec tar -xzpf /elwix/backup/.var.tgz -C /elwix/altroot
                           cfexec tar -xzpf /elwix/altroot/backup/.etc.tgz -C /elwix
                         ;;                          ;;
                 5)                  5)
                         reboot                          reboot
Line 93  menu() Line 107  menu()
                         $SHELL                          $SHELL
                         ;;                          ;;
                 9)                  9)
                           echo
                           camcontrol devlist
                           echo
                           read -p " +Select drive [like: ada1]: " dev
                           if [ -n "$dev" ]; then
                                   if `disklabel $dev`; then
                                           read -p " +This is right choice? [no|yes]: " ask
                                           if [ X"$ask" = X"yes" -o X"$ask" = X"y" ]; then
                                                   sysctl -w kern.geom.debugflags=16
                                                   dd if=/dev/ufs/elwix of=/dev/$dev
                                                   sysctl -w kern.geom.debugflags=0
                                           fi
                                   fi
                           fi
                         ;;                          ;;
         esac          esac
 }  }

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


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