Last change
on this file since 14071 was 14071, checked in by rick, 7 years ago |
Fix no traffic possible from aliased gateway iface
Packets originating from same interface as the gateway interface (aliased
interface) are not matched by the 'out' rule.
Technically they are both incoming and outgoing at the same time and thus will
be covered the the 'in' rule directive. By ensuring matching is done on both
incoming and outgoing this packets will be allowed.
|
-
Property svn:eol-style
set to
LF
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Small tool to build nanobsd release, ready for distribution:
|
---|
3 |
|
---|
4 | BASEDIR="`dirname $0`/.."
|
---|
5 |
|
---|
6 | # Some cleaning at start
|
---|
7 | for PORT in ${BASEDIR}/misc/ports/*/*; do
|
---|
8 | (cd $PORT; make clean);
|
---|
9 | done
|
---|
10 |
|
---|
11 | # Version target
|
---|
12 | # Either version from command line or else subversion base
|
---|
13 | VERSION=${1-`svn info ${BASEDIR} | awk '/Revision:/ {print $2}'`}
|
---|
14 |
|
---|
15 | TMPDIR=`mktemp -d -t $(basename $0 .sh)`
|
---|
16 |
|
---|
17 | PKGDIR=wl-image-$VERSION
|
---|
18 | WRKSRC=$TMPDIR/$PKGDIR
|
---|
19 | mkdir $WRKSRC
|
---|
20 | cp -R ${BASEDIR}/tools $WRKSRC
|
---|
21 | cp -R ${BASEDIR}/cfg $WRKSRC
|
---|
22 | cp -R ${BASEDIR}/misc $WRKSRC
|
---|
23 | cp -R ${BASEDIR}/files $WRKSRC
|
---|
24 | cp -R ${BASEDIR}/README.txt $WRKSRC
|
---|
25 |
|
---|
26 | # Present real image
|
---|
27 | # XXX: Make path relative
|
---|
28 | # XXX: Find some pretty options
|
---|
29 | IMG=/usr/obj/nanobsd.wleiden/_.disk.full
|
---|
30 | IMG_DIR=`dirname ${IMG}`
|
---|
31 | IMG_PKGDIR=${IMG_DIR}/${PKGDIR}
|
---|
32 | mkdir ${IMG_PKGDIR}
|
---|
33 | ln ${IMG} ${IMG_PKGDIR}/disk_full.img
|
---|
34 |
|
---|
35 | # Make pretty tar file out of it
|
---|
36 | tar --exclude ".svn" --exclude "Makefile" \
|
---|
37 | --exclude "config.cache" --exclude "config.log" --exclude "config.status" \
|
---|
38 | --exclude ".depend" \
|
---|
39 | -cjf wl-image-$VERSION.tbz \
|
---|
40 | -C $TMPDIR \
|
---|
41 | $PKGDIR/tools \
|
---|
42 | $PKGDIR/cfg \
|
---|
43 | $PKGDIR/files \
|
---|
44 | $PKGDIR/misc \
|
---|
45 | $PKGDIR/README.txt \
|
---|
46 | -C $IMG_DIR \
|
---|
47 | $PKGDIR/disk_full.img
|
---|
48 |
|
---|
49 | rm -fR $TMPDIR
|
---|
50 | rm -fR $IMG_PKGDIR
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.