local revision 98184
178344Sobrien#!/bin/sh 278344Sobrien# 398184Sgordon# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $ 498184Sgordon# $FreeBSD: head/etc/rc.d/local 98184 2002-06-13 22:14:37Z gordon $ 578344Sobrien# 678344Sobrien 798184Sgordon# PROVIDE: local 878344Sobrien# REQUIRE: DAEMON 998184Sgordon# BEFORE: LOGIN 1098184Sgordon# KEYWORD: FreeBSD NetBSD shutdown 1178344Sobrien 1278344Sobrien. /etc/rc.subr 1378344Sobrien 1478344Sobrienname="local" 1578344Sobrienstart_cmd="local_start" 1678344Sobrienstop_cmd="local_stop" 1778344Sobrien 1878344Sobrienlocal_start() 1978344Sobrien{ 2078344Sobrien if [ -f /etc/rc.local ]; then 2178344Sobrien . /etc/rc.local 2278344Sobrien fi 2378344Sobrien} 2478344Sobrien 2578344Sobrienlocal_stop() 2678344Sobrien{ 2778344Sobrien if [ -f /etc/rc.shutdown.local ]; then 2878344Sobrien . /etc/rc.shutdown.local 2978344Sobrien fi 3078344Sobrien} 3178344Sobrien 3278344Sobrienload_rc_config $name 3378344Sobrienrun_rc_command "$1" 34