add a cgd_stop function

This commit is contained in:
christos 2010-11-01 14:41:11 +00:00
parent 110455ef9e
commit a8684509ca
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: cgd,v 1.7 2009/09/11 18:18:03 apb Exp $
# $NetBSD: cgd,v 1.8 2010/11/01 14:41:11 christos Exp $
#
# PROVIDE: cgd
@ -23,5 +23,13 @@ cgd_start()
fi
}
cgd_stop()
{
if [ -f /etc/cgd/cgd.conf ]; then
print_rc_normal "Unconfiguring CGD devices."
cgdconfig -U
fi
}
load_rc_config $name
run_rc_command "$1"