Diff for /elwix/config/etc/default/rc.init between versions 1.4 and 1.6.2.3

version 1.4, 2014/01/05 23:14:23 version 1.6.2.3, 2017/06/19 13:14:03
Line 20  export HOME PATH TERM BLOCKSIZE EDITOR PAGER Line 20  export HOME PATH TERM BLOCKSIZE EDITOR PAGER
   
 SYSPKGDIR="/var/frm"  SYSPKGDIR="/var/frm"
 BOOTLOG="/var/run/elwix.boot"  BOOTLOG="/var/run/elwix.boot"
 XML="/etc/config.xml"  
   
 MGMT_VLAN="4093"  MGMT_VLAN="4093"
 MGMT_NAME="mgmt"  MGMT_NAME="mgmt"
Line 30  umask 022 Line 29  umask 022
   
 boot()  boot()
 {  {
        echo "Check and mount filesystems ..."        echo "Loading ELWIX configz ..."
        fsck -y 1>/dev/null 2>&1 && mount -a || fsck -f -y 
 
        echo "Loading elwix firmware variables ..." 
         cd /elwix/altroot          cd /elwix/altroot
         pax -rw -pe var /          pax -rw -pe var /
         chmod 1777 /var/tmp          chmod 1777 /var/tmp
   #       mount -tunionfs -onoatime /var/db/etc /elwix/etc
           mount -ttmpfs tmpfs /var/db/pkg
         cd /          cd /
 }  }
   
   restore_uboot()
   {
           echo "Restore configz from NAND ..."
           cfexec /etc/rc.cfg load /etc
   }
   
 options()  options()
 {  {
         echo "Set firmware options ..." | tee -a $BOOTLOG          echo "Set firmware options ..." | tee -a $BOOTLOG
Line 49  options() Line 53  options()
 passwd()  passwd()
 {  {
         echo "Syncing password database ..." | tee -a $BOOTLOG          echo "Syncing password database ..." | tee -a $BOOTLOG
        pwd_mkdb /etc/master.passwd | tee -a $BOOTLOG 1>/dev/null 2>&1        cfexec pwd_mkdb /etc/master.passwd | tee -a $BOOTLOG 1>/dev/null 2>&1
         rm -f /etc/nologin          rm -f /etc/nologin
 }  }
   
Line 58  local() Line 62  local()
         echo "Configurate localhost ..." | tee -a $BOOTLOG          echo "Configurate localhost ..." | tee -a $BOOTLOG
         ifconfig lo0 127.0.0.1 | tee -a $BOOTLOG 1>/dev/null 2>&1          ifconfig lo0 127.0.0.1 | tee -a $BOOTLOG 1>/dev/null 2>&1
         hostname `cat /etc/myname`          hostname `cat /etc/myname`
         if [ -x /usr/bin/xmler ]; then  
                 hostname `xmler -g /elwix/system/hostname $XML`  
                 domainname `xmler -g /elwix/system/domain $XML`  
         fi  
 }  }
   
 geteth()  geteth()
Line 168  service() Line 168  service()
 #  #
   
 boot  boot
   restore_uboot
 echo "elwix>>> Start system boot stage at `date`" | tee $BOOTLOG  echo "elwix>>> Start system boot stage at `date`" | tee $BOOTLOG
 options  options
 passwd  passwd

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


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