Am Montag, 12. Februar 2007 11:39 schrieb Phil Sutter:
> On Sun, Feb 11, 2007 at 08:36:54PM +0100, [EMAIL PROTECTED] wrote:
> > Modified: trunk/freewrt/package/shorewall/Makefile
> > ===================================================================
> > --- trunk/freewrt/package/shorewall/Makefile 2007-02-11 15:44:32 UTC
> > (rev
> > 1938) +++ trunk/freewrt/package/shorewall/Makefile 2007-02-11 19:36:53
> > UTC (rev 1939) @@ -30,6 +30,7 @@
> > ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/init.d
> > ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/shorewall
> > ${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/share/shorewall
> > + ${INSTALL_DIR} ${IDIR_SHOREWALL}/var/lib/shorewall
> > ${INSTALL_DIR} ${IDIR_SHOREWALL}/sbin
> > ${INSTALL_BIN} ./files/shorewall.init
> > ${IDIR_SHOREWALL}/etc/init.d/S${PKG_INIT}${PKG_NAME} ${INSTALL_DATA}
> > ${WRKINST}/etc/shorewall/* ${IDIR_SHOREWALL}/etc/shorewall/
>
> Wasn't /var just a link to /tmp which itself is being mounted as tmpfs
> at boot time? Everything created there goes with the wind at reboot. ;)
> No use for creating directories at install time there, better do that
> within a startup script, or change the path used by shorewall.
as usual, you are totally right ;)
shorewall stores run-time related information there. normally it's save to
lose them, because shorewall generates them again when started next time, but
the directory structure of course is important.
in the (not default, but possible) case, that the state of the complete
firewall is saved when the router is shutting down, and restored at boot
time, then this directory must of course keep the content permanently. it's
for example also the directory where shorewall stores the iptables-save
output. (and because shorewall is quite slow in generating the firewall rules
on our embedded devices, it might be wise to use the "save" feature.)
so, to fix that correctly, the path must be changed. I take care of it, asap I
found time for it. maybe a bit later this evening/night. maybe tomorrow.
but, if I think about it. it makes even some postrm commands neccessary. the
directory can hold some files that have not been created by ipkg and because
of that not automaticly removed.
thx for the hint.
--Ralph
> Greetings, Phil
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers