Diff for /elwix/config/etc/default/rc.initial between versions 1.1.2.1 and 1.4

version 1.1.2.1, 2013/01/24 13:14:15 version 1.4, 2013/05/07 20:46:48
Line 40  menu() Line 40  menu()
                         echo                          echo
                         echo "Available interfaces: $IFACES"                          echo "Available interfaces: $IFACES"
                         read -p " +Which from them: " iface                          read -p " +Which from them: " iface
                           if [ -z "$iface" ]; then
                                   return 1
                           fi
                         read -p " +Name of interface $iface []: " name                          read -p " +Name of interface $iface []: " name
                         read -p " +Setup management vlan 4093 on $iface? [no|yes]: " mgmt                          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 " +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" = X"y" ]; then
                                 cfexec sh -c "echo $iface >/etc/mylan"                                  cfexec sh -c "echo $iface >/etc/mylan"
                         fi                          fi
                         ifconfig $iface description "$name" up                          ifconfig $iface description "$name" up
Line 82  menu() Line 85  menu()
                 4)                  4)
                         echo                          echo
                         echo "Restore factory defaults ..."                          echo "Restore factory defaults ..."
                        cfexec rm -rf /elwix/etc/rc.S /elwix/etc/rc.s /elwix/etc/rc.t                        read -p " +Are you sure for restore and clear all changes? [no|yes]: " ans
                        cfexec tar -xzpf /elwix/backup/.var.tgz -C /elwix/altroot                        if [ X"$ans" = X"yes" -o X"$ans" = X"y" ]; then
                        cfexec tar -xzpf /elwix/altroot/backup/.etc.tgz -C /elwix                                cfexec rm -rf /elwix/etc/rc.S /elwix/etc/rc.s /elwix/etc/rc.t
                                 cfexec tar -xzpf /elwix/altroot/backup/.var.tgz -C /elwix/altroot
                                 cfexec tar -xzpf /elwix/altroot/backup/.etc.tgz -C /elwix
                         fi
                         ;;                          ;;
                 5)                  5)
                         reboot                          reboot
Line 107  menu() Line 113  menu()
                         echo                          echo
                         camcontrol devlist                          camcontrol devlist
                         echo                          echo
                        read -p " +Select drive [like: ada1]: " dev                        read -p " +Select copy from drive [like: ada0]: " src
                        if [ -n "$dev" ]; then                        read -p " +Select copy to drive [like: ada1]: " dst
                                if `disklabel $dev`; then                        if [ -n "$src" -a -n "$dst" ]; then
                                        read -p " +This is right choice? [no|yes]: " ask                                if [ -x /usr/sbin/diskinfo ]; then
                                        if [ X"$ask" = X"yes" -o X"$ask" = X"y" ]; then                                        diskinfo $dst
                                                sysctl -w kern.geom.debugflags=16                                        if [ $? -eq 0 ]; then
                                                dd if=/dev/ufs/elwix of=/dev/$dev                                                read -p " +This is right choice? [no|yes]: " ask
                                                sysctl -w kern.geom.debugflags=0                                                if [ X"$ask" = X"yes" -o X"$ask" = X"y" ]; then
                                                         dd if=/dev/$src of=/dev/$dst
                                                 fi
                                         fi                                          fi
                                 fi                                  fi
                         fi                          fi

Removed from v.1.1.2.1  
changed lines
  Added in v.1.4


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