On 11/05/2015 06:42 AM, matt darfeuille wrote: > There is no /etc/os-release file on openwrt and the output of 'uname' > is: > root@OpenWrt:~# uname > Linux > root@OpenWrt:~#
Thanks.
>
> --
> Assuming that the value of LOCKFILE in shorewall.conf should be set
> to something like(path without /lock):
> LOCKFILE=/var/lib/shorewall
Wrong assumption -- LOCKFILE should be the name of the *file*, not the
directory containing the file.
>
> then in lib.common:
> function mutex_on
>
> The line(} before /lock and not after)
> lockf=${LOCKFILE:=${VARDIR}/lock}
> should be changed to
> lockf=${LOCKFILE:=${VARDIR}}/lock
>
> The line that creat the required directory(ies) should be changed
> to(creating required directory if LOCKFILE is set to a path)
> [ -d ${LOCKFILE:=${VARDIR}} ] || mkdir -p
> ${LOCKFILE:=${VARDIR}}
>
> Also in function mutex_off:
> The line(} before /lock and not after)
> rm -f ${LOCKFILE:=${VARDIR}/lock}
> should be changed to
> rm -f ${LOCKFILE:=${VARDIR}}/lock
>
> otherwise you get:
> ...
> Copy complete
> /sbin/shorewall-lite: line 29: can't create /tmp/lib/shorewall/lock:
> Is a directory
> Stopping Shorewall Lite....
> ...
> done.
> Starting Shorewall Lite....
> Initializing...
> ...
> done.
> rm: '/tmp/lib/shorewall/lock' is a directory
> System wndr restarted
>
> --
> If I understand correctly the status -i command should display the
> interfaces which have the option "optionel" in the "interfaces" file?
> If so I do not have any *.status file in my vardir directory even
> though I have some interface with the "optional" option.
>
> Is it because of openwrt or am I misunderstanding/missing something?
>
I don't know. If you send me the compiled firewall script, I can take a
look...
-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
------------------------------------------------------------------------------
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
