gptboot (215799) | gptboot (230099) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org> 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org> 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.d/gptboot 215799 2010-11-24 15:25:17Z pjd $ | 27# $FreeBSD: head/etc/rc.d/gptboot 230099 2012-01-14 02:18:41Z dougb $ |
28# 29 30# PROVIDE: gptboot 31# REQUIRE: mountcritremote 32# KEYWORD: nojail 33 34. /etc/rc.subr 35 36name="gptboot" | 28# 29 30# PROVIDE: gptboot 31# REQUIRE: mountcritremote 32# KEYWORD: nojail 33 34. /etc/rc.subr 35 36name="gptboot" |
37rcvar=`set_rcvar` | 37rcvar="gptboot_enable" |
38start_cmd="gptboot_report" 39 40gptboot_report() 41{ 42 gpart show | \ 43 egrep '(^=>| freebsd-ufs .*(\[|,)(bootfailed|bootonce)(,|\]))' | \ 44 sed 's/^=>//' | \ 45 egrep -v '(\[|,)bootme(,|\])' | \ --- 32 unchanged lines hidden --- | 38start_cmd="gptboot_report" 39 40gptboot_report() 41{ 42 gpart show | \ 43 egrep '(^=>| freebsd-ufs .*(\[|,)(bootfailed|bootonce)(,|\]))' | \ 44 sed 's/^=>//' | \ 45 egrep -v '(\[|,)bootme(,|\])' | \ --- 32 unchanged lines hidden --- |