Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/milestone/fs-usr
          +++ new/usr/src/cmd/svc/milestone/fs-usr
↓ open down ↓ 172 lines elided ↑ open up ↑
 173  173          fi
 174  174          rm -f $UPDATEFILE
 175  175          bootcmd=`/usr/sbin/eeprom bootcmd | /usr/bin/sed -e 's#bootcmd=##g'`
 176  176          if [ `uname -p` = "i386" ]; then
 177  177                  /usr/sbin/reboot -f dryrun
 178  178                  if [ $? = 0 ]; then
 179  179                          /usr/sbin/reboot -f -- "$bootcmd" 
 180  180                          exit $SMF_EXIT_OK
 181  181                  fi
 182  182                  boot_prop=`/usr/sbin/svccfg -s svc:/system/boot-config:default listprop config/auto-reboot-safe | \
 183      -                        /usr/bin/nawk '{ print $3}'`
      183 +                        /usr/xpg4/bin/awk '{ print $3}'`
 184  184                  if [ "$boot_prop" != "true" ]; then 
 185  185                          cecho ""
 186  186                          cecho "WARNING: Reboot required."
 187  187                          cecho "The system has updated the cache of files (boot archive) that is used"
 188  188                          cecho "during the early boot sequence. To avoid booting and running the system"
 189  189                          cecho "with the previously out-of-sync version of these files, reboot the"
 190  190                          cecho "system from the same device that was previously booted."
 191  191                          cecho ""
 192  192                          exit $SMF_EXIT_ERR_FATAL
 193  193                  else
 194  194                          /usr/sbin/reboot -p 
 195  195                          exit $SMF_EXIT_OK
 196  196                  fi 
 197  197          fi
 198  198          /usr/sbin/reboot -- "$bootcmd"
 199  199  fi
 200  200  
 201  201  exit $SMF_EXIT_OK
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX