[BACK]Return to update_openbsd CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/update_openbsd between version 1.101 and 1.103

version 1.101, 2017/12/11 02:34:10 version 1.103, 2017/12/11 02:50:09
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $AFresh1: update_openbsd,v 1.100 2017/12/11 01:48:08 andrew Exp $  # $AFresh1: update_openbsd,v 1.102 2017/12/11 02:36:03 andrew Exp $
 #  #
 # Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com>  # Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com>
 #  #
Line 96 
Line 96 
   
 boot_device_mounted=""  boot_device_mounted=""
 mount_boot_device() {  mount_boot_device() {
     [ "boot_device_mounted" ] && return      [ "$boot_device_mounted" ] && return
   
     local default_mount=$( df -lnP /bsd | sed -ne 's!/dev/.* !!p' )      local default_mount=$( df -lnP /bsd | sed -ne 's!/dev/.* !!p' )
     local boot_mount=$( mount |      local boot_mount=$( mount |
Line 104 
Line 104 
   
     if [ ! "$boot_mount" ]; then      if [ ! "$boot_mount" ]; then
         mount $BOOT_DEVICE /mnt          mount $BOOT_DEVICE /mnt
         boot_device_mounted=""          boot_device_mounted=1
         KERNEL_ROOT=/mnt          KERNEL_ROOT=/mnt
     elif [ "$boot_mount" != "$default_mount" ]; then      elif [ "$boot_mount" != "$default_mount" ]; then
         KERNEL_ROOT=$boot_mount/          KERNEL_ROOT=$boot_mount/

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.103

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