From c21b25560323213bdf2d449235c321b56d70945e Mon Sep 17 00:00:00 2001 From: Max Khon Date: Thu, 18 Mar 2010 13:57:26 +0000 Subject: [PATCH] Fix getting dahdi_enable value in rc.d script. --- misc/dahdi-kmod/Makefile | 2 +- misc/dahdi-kmod/files/dahdi.in | 5 ++++- misc/dahdi/Makefile | 2 +- misc/dahdi/files/dahdi.in | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/misc/dahdi-kmod/Makefile b/misc/dahdi-kmod/Makefile index b5b221246ebf..71ce4c4caa9a 100644 --- a/misc/dahdi-kmod/Makefile +++ b/misc/dahdi-kmod/Makefile @@ -7,7 +7,7 @@ PORTNAME= dahdi PORTVERSION= ${DAHDI_VERSION:S/-//g} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc kld MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= fjoe diff --git a/misc/dahdi-kmod/files/dahdi.in b/misc/dahdi-kmod/files/dahdi.in index 7bbcece0f891..ad50745924f2 100644 --- a/misc/dahdi-kmod/files/dahdi.in +++ b/misc/dahdi-kmod/files/dahdi.in @@ -23,12 +23,15 @@ . %%RC_SUBR%% name="dahdi" +rcvar=`set_rcvar` + start_cmd="dahdi_start" stop_cmd="dahdi_stop" load_rc_config $name +: ${dahdi_enable="NO"} +: ${dahdi_modules="dahdi"} kmod_dir=%%PREFIX%%/lib/dahdi -dahdi_modules=${dahdi_modules:-dahdi} # reverse list dahdi_modules_unload="" for m in ${dahdi_modules}; do diff --git a/misc/dahdi/Makefile b/misc/dahdi/Makefile index b5b221246ebf..71ce4c4caa9a 100644 --- a/misc/dahdi/Makefile +++ b/misc/dahdi/Makefile @@ -7,7 +7,7 @@ PORTNAME= dahdi PORTVERSION= ${DAHDI_VERSION:S/-//g} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc kld MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= fjoe diff --git a/misc/dahdi/files/dahdi.in b/misc/dahdi/files/dahdi.in index 7bbcece0f891..ad50745924f2 100644 --- a/misc/dahdi/files/dahdi.in +++ b/misc/dahdi/files/dahdi.in @@ -23,12 +23,15 @@ . %%RC_SUBR%% name="dahdi" +rcvar=`set_rcvar` + start_cmd="dahdi_start" stop_cmd="dahdi_stop" load_rc_config $name +: ${dahdi_enable="NO"} +: ${dahdi_modules="dahdi"} kmod_dir=%%PREFIX%%/lib/dahdi -dahdi_modules=${dahdi_modules:-dahdi} # reverse list dahdi_modules_unload="" for m in ${dahdi_modules}; do