version 1.108, 2018/02/08 19:07:06 |
version 1.109, 2018/02/08 19:08:01 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.107 2018/02/08 18:46:46 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.108 2018/02/08 19:07:06 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
boot_device_mounted="" |
boot_device_mounted="" |
mount_boot_device() { |
mount_boot_device() { |
[ "$boot_device_mounted" ] && return |
[ "$boot_device_mounted" ] && return |
|
[ "$BOOT_DEVICE" ] || 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 | |