Repository cleanup.

This commit is contained in:
Wouter R 2013-07-27 02:39:45 +02:00
parent efaf58c880
commit 5746d244d7
11 changed files with 30 additions and 69 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
extra/backup
misc

4
README Normal file
View File

@ -0,0 +1,4 @@
WiFi box OpenWRT firmware package
=================================
Documentation can be found in the source code and on the wiki: <http://doodle3d.com/wiki>.

View File

@ -1,10 +0,0 @@
#!/bin/sh
BACKUP_BASENAME=d3d-wifibox-backup
BACKUP_FILE=$BACKUP_BASENAME.tar.gz
REPO_PATH=../../src
BKP_PATH=$BACKUP_BASENAME/lua/autowifi
cd backup
tar xzvf $BACKUP_FILE
opendiff $REPO_PATH $BKP_PATH

View File

@ -0,0 +1,2 @@
alias d='ls -la --color=auto'
alias wopkg='/usr/share/lua/wifibox/opkg.conf'

14
extra/print-gcode.html Normal file
View File

@ -0,0 +1,14 @@
<html>
<head>
<title>.</title>
</head>
<body>
<form action="http://192.168.5.1/cgi-bin/d3dapi/printer/print" method="post">
<input type="hidden" name="id" value="0"></input>
<input type="hidden" name="first" value="true"></input>
<input type="hidden" name="last" value="true"></input>
<textarea name="gcode" rows="42" cols="100"></textarea>
<input type="submit" name="submit" value="print"></input>
</form>
</body>
</html>

View File

@ -8,8 +8,8 @@ INDEX_FILE=Packages
INDEX_GZ_FILE=Packages.gz
if [ "x$1" == "x-h" ]; then
echo "This script creates a directory with wifibox and ultifi ipk files found in the openWrt build environment."
echo "If specified, the -z option also compresses the result."
echo "This script creates a directory with wifibox and ultifi ipk files found in the openWrt build environment. The feed dir is called $PKG_DEST_DIR and will be created in the current directory. (currently `pwd`)"
echo "If specified, the -z option also compresses the result for easier transfer to a webserver."
exit
fi

View File

@ -0,0 +1,8 @@
#!/bin/sh
# This script is merely for conveniently generating the packages feed directory in ~/Sites (e.g. for use with XAMPP or the like). Modify WIFIBOX_BASE_DIR to point to your wifibox directory tree.
WIFIBOX_BASE_DIR=~/Files/_devel/eclipse-workspace/wifibox
cd ~/Sites
$WIFIBOX_BASE_DIR/extra/scripts/create-packages-feed-dir.sh

View File

@ -1,15 +0,0 @@
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Bleeding Edge, r36032)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
d3d-wifi test box #2

View File

@ -1,11 +0,0 @@
## This file contains files and directories that should
## be preserved during an upgrade.
# /etc/example.conf
# /etc/openvpn/
/etc
/usr/share/lua/autowifi
/www/admin
/www/cgi-bin/wfcf
/root

View File

@ -1,2 +0,0 @@
alias d='ls -la --color=auto'
alias wfcfr='/usr/share/lua/autowifi/ext/wfcf'

View File

@ -1,28 +0,0 @@
NOTE: text below is otudated, take it with a grain of salt.
-----
Installation:
- make sure radio0 in /etc/config/wireless is not disabled
- the wlan net must also be added to firewall in the lan zone
== these steps are performed by the package installer
- (ignore) place the src directory in /usr/share/lua and name it 'autowifi'
- (ignore) create a symlink to ext/wfcf in /www/cgi-bin (make sure the file is executable)
- (ignore) create a symlink to admin in /www
- (ignore) create a symlink to ext/autowifi_init in /etc/rc.d and name it S18autowifi_init
== these two items are now handled by the script
- create a wlan network in /etc/config/network as follows <<EOF
config interface 'wlan'
option ifname 'radio0'
option proto 'dhcp'
EOF
NOTE: apparently it should have no ifname (network reload will complain about an unsupported operation)
- HOWEVER in ap mode it should be static with address '192.168.10.1' and netmask '255.255.255.0'
AND act as dhcp server, add to /etc/config/dhcp <<EOF
config dhcp 'wlan'
option interface 'wlan0'
option start '100'
option limit '150'
option leasetime '12h'
EOF