Diff for /elwix/config/rc.subr between versions 1.10.2.9 and 1.11.2.1

version 1.10.2.9, 2017/10/31 15:08:53 version 1.11.2.1, 2021/03/17 21:27:33
Line 163  MakeFS_etc() Line 163  MakeFS_etc()
   
 #       ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf;  #       ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf;
   
        echo ${TARGET_ARCH} >$1/etc/platform;        echo "${TARGET_ARCH} $3" >$1/etc/platform;
   
         Create_etc_motd $1/etc/motd $3;          Create_etc_motd $1/etc/motd $3;
   
Line 197  MakeFS_boot() Line 197  MakeFS_boot()
                         install -m 444 ${CFGDIR}/boot/logo-elwix.4th $1/boot;                          install -m 444 ${CFGDIR}/boot/logo-elwix.4th $1/boot;
                         install -m 444 ${CFGDIR}/boot/brand-elwix.4th $1/boot;                          install -m 444 ${CFGDIR}/boot/brand-elwix.4th $1/boot;
                         install -m 444 ${CFGDIR}/boot/menu.4th $1/boot;                          install -m 444 ${CFGDIR}/boot/menu.4th $1/boot;
                           install -m 444 ${CFGDIR}/boot/logo-elwix.lua $1/boot/lua;
                           install -m 444 ${CFGDIR}/boot/brand-elwix.lua $1/boot/lua;
                         ;;                          ;;
                 *)                  *)
                         ;;                          ;;
Line 224  InstallList() Line 226  InstallList()
         sed -nE -e 's/^ *([^ #]+) */\1/p' < $1 | tr ':' '\n' >$TMPFILE          sed -nE -e 's/^ *([^ #]+) */\1/p' < $1 | tr ':' '\n' >$TMPFILE
         cd $2          cd $2
         for i in $(cat $TMPFILE); do          for i in $(cat $TMPFILE); do
                   if [ ! -f $i ]; then
                           rm -f $TMPFILE
                           echo "Error:: File not found $i"
                           exit 1
                   fi
                 if [ -x $i ]; then                  if [ -x $i ]; then
                         echo "Strip '$i'"                          echo "Strip '$i'"
                         ${CEXEC} chflags -f noschg $i                          ${CEXEC} chflags -f noschg $i
Line 312  StripFiles() Line 319  StripFiles()
                 done                  done
                 cd -                  cd -
                 rm -f $TMPFILE                  rm -f $TMPFILE
           fi
   }
   
   # $1 = file_pattern
   # $2 = From dir
   # $3 = To dir
   InstallLinks()
   {
           if [ -d "$2" ]; then
                   cd $2
                   find . -type l -name "$1" | 
                           tar -cvf - -T - | tar -C $3 -xf -
                   cd -
         fi          fi
 }  }

Removed from v.1.10.2.9  
changed lines
  Added in v.1.11.2.1


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