rc.subr (231667) | rc.subr (231888) |
---|---|
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ | 1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ |
2# $FreeBSD: head/etc/rc.subr 231667 2012-02-14 10:51:24Z dougb $ | 2# $FreeBSD: head/etc/rc.subr 231888 2012-02-18 00:46:18Z delphij $ |
3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 969 unchanged lines hidden (view full) --- 980 *[~#]|*.OLD|*.bak|*.orig|*,v) # scratch file; skip 981 warn "Ignoring scratch file $_file" 982 ;; 983 *) # run in subshell 984 if [ -x $_file ]; then 985 if [ -n "$rc_fast_and_loose" ]; then 986 set $_arg; . $_file 987 else | 3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 969 unchanged lines hidden (view full) --- 980 *[~#]|*.OLD|*.bak|*.orig|*,v) # scratch file; skip 981 warn "Ignoring scratch file $_file" 982 ;; 983 *) # run in subshell 984 if [ -x $_file ]; then 985 if [ -n "$rc_fast_and_loose" ]; then 986 set $_arg; . $_file 987 else |
988 ( trap "echo Script $_file interrupted; kill -QUIT $$" 3 989 trap "echo Script $_file interrupted; exit 1" 2 990 trap "echo Script $_file running" 29 | 988 ( trap "echo Script $_file interrupted >&2 ; kill -QUIT $$" 3 989 trap "echo Script $_file interrupted >&2 ; exit 1" 2 990 trap "echo Script $_file running >&2" 29 |
991 set $_arg; . $_file ) 992 fi 993 fi 994 ;; 995 esac 996} 997 998# --- 745 unchanged lines hidden --- | 991 set $_arg; . $_file ) 992 fi 993 fi 994 ;; 995 esac 996} 997 998# --- 745 unchanged lines hidden --- |