Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493860 - net-firewall/sanewall - include command line options in init script and conf.d file
Summary: net-firewall/sanewall - include command line options in init script and conf....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 18:58 UTC by INODE64 Sistemas
Modified: 2014-11-28 17:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sanewall-initd (sanewall,1.14 KB, text/plain)
2013-12-10 18:59 UTC, INODE64 Sistemas
Details

Note You need to log in before you can comment on or make changes to this bug.
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.