Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 493860

Summary: net-firewall/sanewall - include command line options in init script and conf.d file
Product: Gentoo Linux Reporter: INODE64 Sistemas <web>
Component: [OLD] ServerAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sanewall-initd

Description INODE64 Sistemas 2013-12-10 18:58:32 UTC
sanewall support pass parameter to force IPV4 or IPV6 (with -4 or -6)

If you installation is missing IPV6 disable with -4

Reproducible: Always
Comment 1 INODE64 Sistemas 2013-12-10 18:59:43 UTC
Created attachment 365064 [details]
sanewall-initd

Include support to include parameters before command
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-10 19:00:50 UTC
Comment on attachment 365064 [details]
sanewall-initd

--- files/sanewall.initd        2013-06-15 13:07:43.000000000 +0200
+++ -   2013-12-10 20:00:37.066343473 +0100
@@ -22,36 +22,36 @@
 start() {
        ebegin "Starting sanewall"
-       /usr/sbin/sanewall ${SANEWALL_CONFIG} start >/dev/null
+       /usr/sbin/sanewall ${SANEWALL_OPTS} ${SANEWALL_CONFIG} start >/dev/null
        eend $?
 }
 stop() {
        ebegin "Stopping sanewall"
-       /usr/sbin/sanewall stop >/dev/null
+       /usr/sbin/sanewall ${SANEWALL_OPTS} stop >/dev/null
        eend $?
 }
 try() {
        ebegin "Trying sanewall configuration"
-       /usr/sbin/sanewall ${SANEWALL_CONFIG} try
+       /usr/sbin/sanewall ${SANEWALL_OPTS} ${SANEWALL_CONFIG} try
        eend $?
 }
 status() {
        ebegin "Showing sanewall status"
-       /usr/sbin/sanewall status
+       /usr/sbin/sanewall ${SANEWALL_OPTS} status
        eend $?
 }
 panic() {
        ebegin "sanewall panic"
-       /usr/sbin/sanewall panic
+       /usr/sbin/sanewall ${SANEWALL_OPTS} panic
        eend $?
 }
 save() {
        ebegin "Saving sanewall configuration"
-       /usr/sbin/sanewall save
+       /usr/sbin/sanewall ${SANEWALL_OPTS} save
        eend $?
 }
Comment 3 Tim Harder gentoo-dev 2014-11-28 17:04:54 UTC
Fixed in the tree.