Skip to contentSkip to conversation

doc: nft.8 document use of -f option to start nft scripts

PATCH Applied Duncan Roe 2 participants 4 messages Nov 19, 2017 – Nov 24, 2017 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 doc: nft.8 document use of -f option to start nft scripts

The man page didn't document nft scripts at all before, so putting that with the -f option seemed as good a place as any. It does work to start scripts #!/usr/sbin/nft --file but I didn't think this was worth documenting. The wiki is also updated.

---
 doc/nft.xml | 3 +++
 1 file changed, 3 insertions(+)
doc/nft.xml +3 -0
index 2dec0aa..432f1c4 100644
@@ -168,6 +168,9 @@ vi:ts=4 sw=4
 					<para>
 						Read input from <replaceable>filename</replaceable>.
 					</para>
+					<para>
+						nft scripts must start <command>#!/usr/sbin/nft -f</command>
+					</para>
 				</listitem>
 			</varlistentry>
 			<varlistentry>
Signature · 1 line
2.9.0
author
#1 lore raw

Hi Pablo,

Is there anything wrong with this patch? Like, does it document an untinded feature or something?

Cheers ... Duncan.

Quoted 26 lines · Duncan Roe

The man page didn't document nft scripts at all before, so putting that with the -f option seemed as good a place as any. It does work to start scripts #!/usr/sbin/nft --file but I didn't think this was worth documenting. The wiki is also updated.

---
 doc/nft.xml | 3 +++
 1 file changed, 3 insertions(+)
doc/nft.xml +3 -1
index 2dec0aa..432f1c4 100644
@@ -168,6 +168,9 @@ vi:ts=4 sw=4
 					<para>
 						Read input from <replaceable>filename</replaceable>.
 					</para>
+					<para>
+						nft scripts must start <command>#!/usr/sbin/nft -f</command>
+					</para>
 				</listitem>
 			</varlistentry>
 			<varlistentry>
--

2.9.0

author
#2 lore raw

On Fri, Nov 24, 2017 at 01:33:08PM +1100, Duncan Roe wrote:
...

Quoted 2 lines

Is there anything wrong with this patch? Like, does it document an untinded feature or something?

...
Rats! untinded => unintended

maintainer Applied
#3 lore raw
In reply to Duncan Roe
Quoted 4 lines · Duncan Roe

Hi Pablo,

Is there anything wrong with this patch? Like, does it document an untinded feature or something?

Oh, sorry, its my fault.

I applied this patch but forgot to say so.