On 10/19/2015 12:52 PM, matt darfeuille wrote:
> Hi,
>
> On openwrt the hostname command is not installed.
>
> So I have added in lib.cli an if statement that will check if
> hostname or uname is installed and a default value of Unknown if
> neither are found.
>
> if qt mywhich hostname; then
> g_hostname=$(hostname 2> /dev/null)
> elif qt mywhich uname; then
> g_hostname=$(uname -n 2> /dev/null)
> else
> g_hostname="unknown"
> fi
>
> I have also added the same if statement in lib.cli-std even though it
> is not shorewall-lite related!:)
>
> Both(lib.cli lib.cli-std) files attached!
>
> On a slightly related note:
>
> I have upgraded openwrt to the latest stable version and
> shorewall-lite is no longer available!
>
> So I was wondering what would be the best way to have shorewall-lite
> installed:
>
> -- Doing it using the tarball(sandbox runnable configuration)?
> -- Creating the packet for
> openwrt(http://wiki.openwrt.org/doc/devel/packages)?
> -- Any other idea(s)?
>

I've applied the changes you recommend.

Regarding installing Shorewall-lite on OpenWRT, the best way would be to 
create an OpenWRT package. You can also use the tarball, but I don't 
think you need to use a sandbox configuration; you simply need to create 
a shorewallrc file that matches the needs of OpenWRT. I recall that /var 
is a ram fs on that platform, so clearly VARLIB needs to be set 
differently from other platforms.

-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 \________________________________________________

------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to