source: hybrid/branches/releng-11/nanobsd/tools/make-release.sh@ 13742

Last change on this file since 13742 was 13742, checked in by rick, 8 years ago

Try to beat captive portal requests for already autorized devices.

Dummy framework for tool which reads arp requests and based on the response
checks if the MAC is already whitelisted and hence adds it's IP to the
whitelist table.

This will avoid issues with captive portal checkers at phone, which assume a
captive portal, yet their request in and on itself will already activate the
known lease again.

Secondly this framework is also required to allow 'roaming' from users between
accesspoints without the need of re-authentication (or IoT devices for
example).

  • 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
4BASEDIR="`dirname $0`/.."
5
6# Some cleaning at start
7for PORT in ${BASEDIR}/misc/ports/*/*; do
8 (cd $PORT; make clean);
9done
10
11# Version target
12# Either version from command line or else subversion base
13VERSION=${1-`svn info ${BASEDIR} | awk '/Revision:/ {print $2}'`}
14
15TMPDIR=`mktemp -d -t $(basename $0 .sh)`
16
17PKGDIR=wl-image-$VERSION
18WRKSRC=$TMPDIR/$PKGDIR
19mkdir $WRKSRC
20cp -R ${BASEDIR}/tools $WRKSRC
21cp -R ${BASEDIR}/cfg $WRKSRC
22cp -R ${BASEDIR}/misc $WRKSRC
23cp -R ${BASEDIR}/files $WRKSRC
24cp -R ${BASEDIR}/README.txt $WRKSRC
25
26# Present real image
27# XXX: Make path relative
28# XXX: Find some pretty options
29IMG=/usr/obj/nanobsd.wleiden/_.disk.full
30IMG_DIR=`dirname ${IMG}`
31IMG_PKGDIR=${IMG_DIR}/${PKGDIR}
32mkdir ${IMG_PKGDIR}
33ln ${IMG} ${IMG_PKGDIR}/disk_full.img
34
35# Make pretty tar file out of it
36tar --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
49rm -fR $TMPDIR
50rm -fR $IMG_PKGDIR
51
Note: See TracBrowser for help on using the repository browser.