1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $NetBSD: local,v 1.4 2000/05/13 08:45:07 lukem Exp $
| 3# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $ 4# $FreeBSD: head/etc/rc.d/local 98184 2002-06-13 22:14:37Z gordon $
|
4# 5
| 5# 6
|
6# REQUIRE: DAEMON
| |
7# PROVIDE: local
| 7# PROVIDE: local
|
8# KEYWORD: shutdown
| 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10# KEYWORD: FreeBSD NetBSD shutdown
|
9 10. /etc/rc.subr 11 12name="local" 13start_cmd="local_start" 14stop_cmd="local_stop" 15 16local_start() 17{ 18 if [ -f /etc/rc.local ]; then 19 . /etc/rc.local 20 fi 21} 22 23local_stop() 24{ 25 if [ -f /etc/rc.shutdown.local ]; then 26 . /etc/rc.shutdown.local 27 fi 28} 29 30load_rc_config $name 31run_rc_command "$1"
| 11 12. /etc/rc.subr 13 14name="local" 15start_cmd="local_start" 16stop_cmd="local_stop" 17 18local_start() 19{ 20 if [ -f /etc/rc.local ]; then 21 . /etc/rc.local 22 fi 23} 24 25local_stop() 26{ 27 if [ -f /etc/rc.shutdown.local ]; then 28 . /etc/rc.shutdown.local 29 fi 30} 31 32load_rc_config $name 33run_rc_command "$1"
|