ufw: use ufw-init for start,stop,restart of service

This commit is contained in:
str1ngs 2011-07-16 10:26:30 -07:00
parent 0cb8647ab0
commit 498c6309c1
2 changed files with 9 additions and 3 deletions

View file

@ -6,12 +6,18 @@ depend() {
start() {
ebegin "Starting ufw"
ufw enable
/lib/ufw/ufw-init start
eend $?
}
stop() {
ebegin "Stopping ufw"
ufw disable
/lib/ufw/ufw-init stop
eend $?
}
restart() {
ebegin "Restarting ufw"
/lib/ufw/ufw-init retart
eend $?
}

View file

@ -1,7 +1,7 @@
# Template file for 'ufw'
pkgname=ufw
version=0.30.1
revision=1
revision=2
distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
build_style=python-module
short_desc="Uncomplicated Firewall"