version 1.41, 2012/12/08 19:55:39 |
version 1.42, 2012/12/09 03:41:41 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.40 2012/12/08 19:54:08 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.41 2012/12/08 19:55:39 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
[ -e /boot.conf ] && sed -E '/^ *(set +image|boot) +/!d ; \ |
[ -e /boot.conf ] && sed -E '/^ *(set +image|boot) +/!d ; \ |
s///; s/^.*://; s/ .*$//' /boot.conf \ |
s///; s/^.*://; s/ .*$//' /boot.conf \ |
) | tail -1` |
) | tail -1` |
|
BOOT_KERNEL=`follow_symlink /$BOOT_KERNEL` |
BOOT_KERNEL="/${BOOT_KERNEL#/}" |
BOOT_KERNEL="/${BOOT_KERNEL#/}" |
BOOT_KERNEL=`follow_symlink $BOOT_KERNEL` |
|
|
|
BOOT_KERNEL_VERSION=`kernel_file_version $BOOT_KERNEL` |
BOOT_KERNEL_VERSION=`kernel_file_version $BOOT_KERNEL` |
|
|