On 9/8/2013 11:54 AM, Martin Gignac wrote: > Hi, > > I don't know if this is the right place to post this (sorry if it > isn't), but I have a suggested diff for lib.cli to account for when > running the Shorewall 'dump' command on Arch Linux. > > Since Arch Linux hasn't had the 'netstat' nor 'arp' binaries installed > for a while, the diff makes it so that a check for the existence of > 'netstat' and 'arp' is done before running them. If they do not exist > the replacements 'ss' and 'ip neigh' are used instead. > > Thanks, > -Martin > > --- lib.cli.orig 2013-08-28 05:16:34.000000000 -0400 > +++ lib.cli 2013-09-08 14:20:01.268239572 -0400 > @@ -1503,7 +1503,11 @@ > > if [ $g_family -eq 4 ]; then > heading "ARP" > - arp -na > + if [ -x arp ]; then
That can't be right! The 'arp' binary isn't going to be in the script's current working directory. This probably works for you on an Arch system, but it won't work on any other distro. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
