local revision 98184
1#!/bin/sh 2# 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 $ 5# 6 7# PROVIDE: local 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10# KEYWORD: FreeBSD NetBSD shutdown 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" 34