summaryrefslogtreecommitdiffstats
path: root/minikrebs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-01-10 14:37:10 +0100
committermakefu <github@syntax-fehler.de>2013-01-10 14:37:10 +0100
commit7296c90dff5e260c6279aed071fe507a4ddedc4a (patch)
treef569e130dee7b084c1afc078e0d19e17b7578362 /minikrebs
parent9b29cf3939802ab1cf634e6185f5b0beac52e590 (diff)
emergency commit, i am so sorry...
Diffstat (limited to 'minikrebs')
-rw-r--r--minikrebs/doc/SETUP2
-rwxr-xr-xminikrebs/prepare10
-rw-r--r--minikrebs/profiles/README.md5
-rwxr-xr-xminikrebs/profiles/camkrebs_uvc/custom_make3
l---------minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer1
-rwxr-xr-xminikrebs/profiles/camkrebs_zc3xx/custom_make2
-rw-r--r--minikrebs/profiles/camkrebs_zc3xx/doc/README.md2
l---------minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys)0
-rw-r--r--minikrebs/profiles/heckenkrebs/doc/README.md (renamed from minikrebs/README)0
-rw-r--r--minikrebs/profiles/init_overlay10
-rwxr-xr-xminikrebs/profiles/instacam/custom_make3
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/config/network (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network)0
l---------minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys (renamed from minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/rc.local (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/shadow (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow)0
-rw-r--r--minikrebs/profiles/instacam/doc/README.md52
-rw-r--r--minikrebs/profiles/krebs/customfiles/etc/rc.local5
-rwxr-xr-xminikrebs/profiles/krebscam/custom_make2
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/network14
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/system11
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/tinc (renamed from minikrebs/profiles/krebs/customfiles/etc/config/tinc)0
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/wireless19
l---------minikrebs/profiles/krebscam/customfiles/etc/dropbear/authorized_keys1
l---------minikrebs/profiles/krebscam/customfiles/etc/rc.d/tinc (renamed from minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc)0
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/rc.local3
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/shadow (renamed from minikrebs/profiles/rickroller/customfiles/etc/shadow)0
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/autoinfest4
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/genhostid2
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/led3
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/tinc-update4
-rw-r--r--minikrebs/profiles/krebscam/doc/README.md8
-rwxr-xr-xminikrebs/profiles/lazorkrebs/custom_make3
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/config/mjpg-streamer7
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/config/network9
l---------minikrebs/profiles/lazorkrebs/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/rc.local1
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/flvplayer.swfbin29708 -> 0 bytes
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/index.html24
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/rickroll.flvbin1078840 -> 0 bytes
-rw-r--r--minikrebs/profiles/rickroller/doc/README.md8
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/airbase-ngbin0 -> 89141 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/custom_make4
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/dhcp (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/dhcp)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/firewall (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/firewall)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/fstab19
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/network (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/network)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/system (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/system)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/uhttpd (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/uhttpd)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/wireless (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/wireless)0
l---------minikrebs/profiles/rickroller_advanced/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.crt (renamed from minikrebs/profiles/rickroller/customfiles/etc/uhttpd.crt)bin529 -> 529 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.key (renamed from minikrebs/profiles/rickroller/customfiles/etc/uhttpd.key)bin609 -> 609 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/doc/OVERLAY6
-rw-r--r--minikrebs/profiles/rickroller_advanced/doc/README.md10
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/1x1.gif (renamed from minikrebs/profiles/rickroller/customfiles/www/1x1.gif)bin35 -> 35 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/overlay/www/cgi-bin/rrhelper (renamed from minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/index.html27
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/rick.gifbin0 -> 506229 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/rick.oggbin0 -> 390604 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_bare/custom_make (renamed from minikrebs/profiles/rickroller/custom_make)0
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/dhcp28
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/firewall112
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/network15
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/system8
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/uhttpd13
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/wireless19
l---------minikrebs/profiles/rickroller_bare/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.crtbin0 -> 529 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.keybin0 -> 609 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/1x1.gifbin0 -> 35 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper15
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/index.html27
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/rick.gifbin0 -> 506229 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/rick.oggbin0 -> 390604 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/doc/README.md21
-rw-r--r--minikrebs/profiles/rickroller_bare/doc/videoconvert7
-rwxr-xr-xminikrebs/profiles/streamerkrebs/custom_make2
-rw-r--r--minikrebs/profiles/streamerkrebs/doc/README.md3
-rw-r--r--minikrebs/profiles/wifibridge/.gitignore1
-rwxr-xr-xminikrebs/profiles/wifibridge/custom_make2
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/firewall104
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/fstab19
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/network17
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/wireless21
l---------minikrebs/profiles/wifibridge/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/rc.local4
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/root/.ssh/authorized_keys1
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/autoinfest4
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/genhostid2
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/led3
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/tinc-update4
-rwxr-xr-xminikrebs/upgrade4
97 files changed, 718 insertions, 46 deletions
diff --git a/minikrebs/doc/SETUP b/minikrebs/doc/SETUP
deleted file mode 100644
index f8e9ca3b..00000000
--- a/minikrebs/doc/SETUP
+++ /dev/null
@@ -1,2 +0,0 @@
-make command used in image builder. files is the customfiles directory
-make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 radvd ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=files/
diff --git a/minikrebs/prepare b/minikrebs/prepare
index 610c1299..6b69db50 100755
--- a/minikrebs/prepare
+++ b/minikrebs/prepare
@@ -24,6 +24,7 @@ echo
echo "copying generic init:"
cp --remove-destination profiles/init builder/init
echo " profile/init -> builder/init"
+[ -e builder/overlay ] && echo "removing old overlay" && rm -rf builder/overlay
echo
echo "copying profile:"
find profiles/$PROFILE -mindepth 1 -maxdepth 1| while read file; do
@@ -34,4 +35,11 @@ done
echo
echo $PROFILE > builder/current_profile
-echo 'now run `builder/init`'
+echo "Finished Preparing Profile $PROFILE"
+echo 'run `builder/init`'
+
+if [ -e builder/overlay ];then
+ echo
+ echo "This profile also contains overlay data,"
+ echo 'run `builder/init_overlay` to copy'
+fi
diff --git a/minikrebs/profiles/README.md b/minikrebs/profiles/README.md
index fc1e8945..9e324d9e 100644
--- a/minikrebs/profiles/README.md
+++ b/minikrebs/profiles/README.md
@@ -1,4 +1,9 @@
+# Profiles
Every profile must have a `custom_make` script which builds the image for the
profile. This script also can contain which customizes the image files before
building.
+
+You may also want to include your own files into your image, adding file=customfile in your custom\_make.
+
+default password is `aidsballs`
diff --git a/minikrebs/profiles/camkrebs_uvc/custom_make b/minikrebs/profiles/camkrebs_uvc/custom_make
deleted file mode 100755
index 752a7bfe..00000000
--- a/minikrebs/profiles/camkrebs_uvc/custom_make
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 radvd kmod-fs-ext4 wireless-tools kmod-usb-core kmod-usb2 -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc mjpg-streamer" FILES=customfiles/
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer
deleted file mode 120000
index 11b1e90d..00000000
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer
+++ /dev/null
@@ -1 +0,0 @@
-../init.d/mjpg-streamer \ No newline at end of file
diff --git a/minikrebs/profiles/camkrebs_zc3xx/custom_make b/minikrebs/profiles/camkrebs_zc3xx/custom_make
index 8f9faf10..642513be 100755
--- a/minikrebs/profiles/camkrebs_zc3xx/custom_make
+++ b/minikrebs/profiles/camkrebs_zc3xx/custom_make
@@ -1,3 +1,3 @@
#!/bin/sh
-make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 radvd kmod-fs-ext4 wireless-tools kmod-usb-core kmod-usb2 kmod-video-gspca-zc3xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/
+make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 kmod-fs-ext4 wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-video-gspca-zc3xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq -radvd" FILES=customfiles/
diff --git a/minikrebs/profiles/camkrebs_zc3xx/doc/README.md b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
index 3f93bfda..1b3d4beb 100644
--- a/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
+++ b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
@@ -1,4 +1,4 @@
# Documentation
-Firmware for krebs with Logitech QuickCam Messenger attached.
+Firmware for krebs with Cheapo china webcam with zc3xx chipset attached.
The profile is derived from krebs
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys
index 9c87fc52..9c87fc52 120000
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys
+++ b/minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys
diff --git a/minikrebs/README b/minikrebs/profiles/heckenkrebs/doc/README.md
index 11d6f527..11d6f527 100644
--- a/minikrebs/README
+++ b/minikrebs/profiles/heckenkrebs/doc/README.md
diff --git a/minikrebs/profiles/init_overlay b/minikrebs/profiles/init_overlay
new file mode 100644
index 00000000..3b714c39
--- /dev/null
+++ b/minikrebs/profiles/init_overlay
@@ -0,0 +1,10 @@
+#!/bin/sh
+[ ! -e overlay/ ] && echo "profile data for external overlay does not exist, bailing out"
+
+[ ! -e doc/overlay ] && echo "Profile demands the following partitioning of the overlay usb stick:" && cat doc/overlay
+
+if grep -q $PWD/mnt/overlay /etc/mtab;then
+
+else
+ echo "please mount your overlay to $PWD/overlay"
+fi
diff --git a/minikrebs/profiles/instacam/custom_make b/minikrebs/profiles/instacam/custom_make
new file mode 100755
index 00000000..cfe965b2
--- /dev/null
+++ b/minikrebs/profiles/instacam/custom_make
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make image PROFILE=TLWR703 PACKAGES="ip kmod-ipv6 kmod-fs-ext4 wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-video-uvc mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq -radvd " FILES=customfiles/
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer
index 298b06fe..298b06fe 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer
+++ b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network b/minikrebs/profiles/instacam/customfiles/etc/config/network
index c459c4e0..c459c4e0 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network
+++ b/minikrebs/profiles/instacam/customfiles/etc/config/network
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys
index 9c87fc52..9c87fc52 120000
--- a/minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys
+++ b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local b/minikrebs/profiles/instacam/customfiles/etc/rc.local
index 3e91b57c..3e91b57c 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local
+++ b/minikrebs/profiles/instacam/customfiles/etc/rc.local
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow b/minikrebs/profiles/instacam/customfiles/etc/shadow
index 251abaf5..251abaf5 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow
+++ b/minikrebs/profiles/instacam/customfiles/etc/shadow
diff --git a/minikrebs/profiles/instacam/doc/README.md b/minikrebs/profiles/instacam/doc/README.md
new file mode 100644
index 00000000..b5da2ddb
--- /dev/null
+++ b/minikrebs/profiles/instacam/doc/README.md
@@ -0,0 +1,52 @@
+# Project Instacam
+
+# Description
+
+The aim of the project is to reliably push a video stream directly to the internets for
+everyone to see at a very low price.
+
+# Hardware
+
+## Core (Wifi / Ethernet)
+- TP-Link WR703n[Amazon](https://www.amazon.de/dp/B008UNA6FS/?tag=krebsco-21)[Ebay China](http://www.ebay.de/itm/BLUE-Mini-Nano-TP-LINK-TL-WR703N-150Mbps-WiFi-for-iPhone-4S-Wireless-Router-HOT-/360501556127?pt=COMP_EN_Routers&hash=item53ef91339f ) ~ 16 Euro
+- USB Webcam
+ - [Logitech C270 with Autofocus (AZ)](https://www.amazon.de/dp/B003PAOAWG/?tag=krebsco-21) ~ 25 Euro
+ - [China NoName Cam (DX)](http://dx.com/p/compact-1-3mp-pc-usb-webcam-with-built-in-microphone-black-51874?Utm_rid=93398939&Utm_source=affiliate) ~ 5++ Euro
+ - [\* List of UVC Supported Devices](http://www.ideasonboard.org/uvc/ )
+ - [\* List of GSPCA Supported Devices](http://linuxtv.org/wiki/index.php/Gspca_devices)
+## 4G / 3G / UMTS
+Currently Untested:
+- usb hub ~ 4 Euro
+ - [NoName USB 2.0 Hub (DX)](http://dx.com/p/4-port-usb-2-0-hub-7980?Utm_rid=93398939&Utm_source=affiliate)
+ - [NoName USB 2.0 Hub (Ebay)](http://www.ebay.de/itm/200825754462?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_2486wt_1366)
+- umts stick ~ 20 Euro
+- MicroSD card (optional)
+
+## Mobile Version
+either use (easy mode):
+- USB Battery Bank
+ - [Dealextreme](http://dx.com/p/rechargeable-2000mah-mobile-emergency-power-battery-with-6-adapters-66902?Utm_rid=93398939&Utm_source=affiliate)
+or (expert mode):
+- DC-DC StepDown Module
+ - [Ebay](http://www.ebay.de/itm/221162832094?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_3092wt_1132)
+- Battery Pack
+ - take any battery pack you can find (car battery, model making)
+
+# Software
+
+## Build Firmware
+
+ git clone github.com/krebscode/painload krebs
+ cd krebs/minikrebs
+ ./prepare instacam
+ builder/init
+
+## Flash
+
+ # flash image is at:
+ # builder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin
+
+ # either flash image directly via web interface or
+ # after obtaining ssh-access on the router run
+
+ OWN_IP=<<your ip>> ./upgrade <<remote ip>>
diff --git a/minikrebs/profiles/krebs/customfiles/etc/rc.local b/minikrebs/profiles/krebs/customfiles/etc/rc.local
index 1f907dcb..001b873f 100644
--- a/minikrebs/profiles/krebs/customfiles/etc/rc.local
+++ b/minikrebs/profiles/krebs/customfiles/etc/rc.local
@@ -1,3 +1,4 @@
-/usr/bin/genhostid
-[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest
+[ ! -e /etc/hostid ] && /usr/bin/genhostid
+[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest &
+tincd -n retiolum
exit 0
diff --git a/minikrebs/profiles/krebscam/custom_make b/minikrebs/profiles/krebscam/custom_make
new file mode 100755
index 00000000..e5ee946e
--- /dev/null
+++ b/minikrebs/profiles/krebscam/custom_make
@@ -0,0 +1,2 @@
+#!/bin/sh
+make image PROFILE=TLWR703 PACKAGES="tinc kmod-ipv6 -dnsmasq -radvd ip wireless-tools kmod-fs-ext4 kmod-usb-core kmod-usb2 block-mount kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=customfiles/
diff --git a/minikrebs/profiles/krebscam/customfiles/etc/config/network b/minikrebs/profiles/krebscam/customfiles/etc/config/network
new file mode 100644
index 00000000..04722166
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/etc/config/network
@@ -0,0 +1,14 @@
+
+config interface 'loopback'
+ option ifname 'lo'
+ option proto 'static'
+ option ipaddr '127.0.0.1'
+ option netmask '255.0.0.0'
+
+config interface 'lan'
+ option ifname 'eth0'
+ option proto 'dhcp'
+
+config interface 'wan'
+ option ifname 'wlan0'
+ option proto 'dhcp'
diff --git a/minikrebs/profiles/krebscam/customfiles/etc/config/system b/minikrebs/profiles/krebscam/customfiles/etc/config/system
new file mode 100644
index 00000000..923755f7
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/etc/config/system
@@ -0,0 +1,11 @@
+config system
+ option hostname krebsplug
+ option timezone UTC
+
+config 'led' 'lan_led'
+ option 'name' 'LAN'
+ option 'sysfs' 'tp-link:blue:system'
+ option 'trigger' 'netdev'
+ option 'dev' 'eth0'
+ option 'mode' 'link tx rx'
+
diff --git a/minikrebs/profiles/krebs/customfiles/etc/config/tinc b/minikrebs/profiles/krebscam/customfiles/etc/config/tinc
index 3a03196c..3a03196c 100644
--- a/minikrebs/profiles/krebs/customfiles/etc/config/tinc
+++ b/minikrebs/profiles/krebscam/customfiles/etc/config/tinc
diff --git a/minikrebs/profiles/krebscam/customfiles/etc/config/wireless b/minikrebs/profiles/krebscam/customfiles/etc/config/wireless
new file mode 100644
index 00000000..e08a42ed
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/etc/config/wireless
@@ -0,0 +1,19 @@
+
+config wifi-device 'radio0'
+ option type 'mac80211'
+ option hwmode '11ng'
+ option path 'platform/ar933x_wmac'
+ option htmode 'HT20'
+ list ht_capab 'SHORT-GI-20'
+ list ht_capab 'SHORT-GI-40'
+ list ht_capab 'RX-STBC1'
+ list ht_capab 'DSSS_CCK-40'
+ option disabled 1
+
+config wifi-iface
+ option device 'radio0'
+ option network 'wan'
+ option encryption 'none'
+ option mode 'sta'
+ option ssid 'linksys'
+
diff --git a/minikrebs/profiles/krebscam/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/krebscam/customfiles/etc/dropbear/authorized_keys
new file mode 120000
index 00000000..9c87fc52
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/etc/dropbear/authorized_keys
@@ -0,0 +1 @@
+/root/.ssh/authorized_keys \ No newline at end of file
diff --git a/minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc b/minikrebs/profiles/krebscam/customfiles/etc/rc.d/tinc
index f08fe11d..f08fe11d 120000
--- a/minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc
+++ b/minikrebs/profiles/krebscam/customfiles/etc/rc.d/tinc
diff --git a/minikrebs/profiles/krebscam/customfiles/etc/rc.local b/minikrebs/profiles/krebscam/customfiles/etc/rc.local
new file mode 100644
index 00000000..3113cc2a
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/etc/rc.local
@@ -0,0 +1,3 @@
+[ ! -e /etc/hostid ] && /usr/bin/genhostid
+[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest
+exit 0
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/shadow b/minikrebs/profiles/krebscam/customfiles/etc/shadow
index 251abaf5..251abaf5 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/shadow
+++ b/minikrebs/profiles/krebscam/customfiles/etc/shadow
diff --git a/minikrebs/profiles/krebscam/customfiles/usr/bin/autoinfest b/minikrebs/profiles/krebscam/customfiles/usr/bin/autoinfest
new file mode 100755
index 00000000..a30c1a2b
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/usr/bin/autoinfest
@@ -0,0 +1,4 @@
+#!/bin/sh
+printf "enter your tincname:"
+HOSTNAME=$(uci get system.@system[0].hostname)_$(hostid)
+wget -O- http://tinc.krebsco.de | HOSTN=$HOSTNAME sh
diff --git a/minikrebs/profiles/krebscam/customfiles/usr/bin/genhostid b/minikrebs/profiles/krebscam/customfiles/usr/bin/genhostid
new file mode 100755
index 00000000..463e04b7
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/usr/bin/genhostid
@@ -0,0 +1,2 @@
+#!/bin/sh
+dd if=/dev/urandom bs=1 count=4> /etc/hostid
diff --git a/minikrebs/profiles/krebscam/customfiles/usr/bin/led b/minikrebs/profiles/krebscam/customfiles/usr/bin/led
new file mode 100755
index 00000000..e3e998a8
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/usr/bin/led
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ x${:-} = x ] && echo "usage: $0 [0|1]" && exit 1
+echo $1 > /sys/class/leds/tp-link\:blue\:system/brightness
diff --git a/minikrebs/profiles/krebscam/customfiles/usr/bin/tinc-update b/minikrebs/profiles/krebscam/customfiles/usr/bin/tinc-update
new file mode 100755
index 00000000..4ff46b8f
--- /dev/null
+++ b/minikrebs/profiles/krebscam/customfiles/usr/bin/tinc-update
@@ -0,0 +1,4 @@
+#!/bin/sh
+if test -e /etc/tinc/retiolum; then
+ if ping -c 1 euer.krebsco.de -W 5 &>/dev/null; then (wget -O- http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C /etc/tinc/retiolum/hosts/);fi
+fi
diff --git a/minikrebs/profiles/krebscam/doc/README.md b/minikrebs/profiles/krebscam/doc/README.md
new file mode 100644
index 00000000..0d56524e
--- /dev/null
+++ b/minikrebs/profiles/krebscam/doc/README.md
@@ -0,0 +1,8 @@
+# Krebs Profile
+
+This is the base profile for krebs nodes. Copy it to create cool krebs images.
+
+# Hard Package dependencies
+Make sure to include them in custom\_make
+
+ tinc
diff --git a/minikrebs/profiles/lazorkrebs/custom_make b/minikrebs/profiles/lazorkrebs/custom_make
new file mode 100755
index 00000000..92271158
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/custom_make
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make image PROFILE=TLWR703 PACKAGES="wireless-tools kmod-usb-core kmod-usb2 mjpg-streamer usbip usbip-server kmod-video-uvc -radvd -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/
diff --git a/minikrebs/profiles/lazorkrebs/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/lazorkrebs/customfiles/etc/config/mjpg-streamer
new file mode 100644
index 00000000..bb4f81ec
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/customfiles/etc/config/mjpg-streamer
@@ -0,0 +1,7 @@
+config mjpg-streamer core
+ option enabled "1"
+ option device "/dev/video0"
+ option resolution "1280x1024"
+ option fps "5"
+ option www "/www/webcam"
+ option port "80"
diff --git a/minikrebs/profiles/lazorkrebs/customfiles/etc/config/network b/minikrebs/profiles/lazorkrebs/customfiles/etc/config/network
new file mode 100644
index 00000000..c459c4e0
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/customfiles/etc/config/network
@@ -0,0 +1,9 @@
+config interface 'loopback'
+ option ifname 'lo'
+ option proto 'static'
+ option ipaddr '127.0.0.1'
+ option netmask '255.0.0.0'
+
+config interface 'lan'
+ option ifname 'eth0'
+ option proto 'dhcp'
diff --git a/minikrebs/profiles/lazorkrebs/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/lazorkrebs/customfiles/etc/dropbear/authorized_keys
new file mode 120000
index 00000000..9c87fc52
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/customfiles/etc/dropbear/authorized_keys
@@ -0,0 +1 @@
+/root/.ssh/authorized_keys \ No newline at end of file
diff --git a/minikrebs/profiles/lazorkrebs/customfiles/etc/rc.local b/minikrebs/profiles/lazorkrebs/customfiles/etc/rc.local
new file mode 100644
index 00000000..3e91b57c
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/customfiles/etc/rc.local
@@ -0,0 +1 @@
+insmod uvcvideo
diff --git a/minikrebs/profiles/lazorkrebs/customfiles/etc/shadow b/minikrebs/profiles/lazorkrebs/customfiles/etc/shadow
new file mode 100644
index 00000000..251abaf5
--- /dev/null
+++ b/minikrebs/profiles/lazorkrebs/customfiles/etc/shadow
@@ -0,0 +1,5 @@
+root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7:::
+daemon:*:0:0:99999:7:::
+ftp:*:0:0:99999:7:::
+network:*:0:0:99999:7:::
+nobody:*:0:0:99999:7:::
diff --git a/minikrebs/profiles/rickroller/customfiles/www/flvplayer.swf b/minikrebs/profiles/rickroller/customfiles/www/flvplayer.swf
deleted file mode 100644
index a5ec0fa5..00000000
--- a/minikrebs/profiles/rickroller/customfiles/www/flvplayer.swf
+++ /dev/null
Binary files differ
diff --git a/minikrebs/profiles/rickroller/customfiles/www/index.html b/minikrebs/profiles/rickroller/customfiles/www/index.html
deleted file mode 100644
index 4c4a9d9f..00000000
--- a/minikrebs/profiles/rickroller/customfiles/www/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<html>
-<head>
-<title>RickRoll'D</title>
-</head>
-<body >
-<img src="/cgi-bin/rrhelper">
-<center>
-<h1>RickRoll'D</h1>
-<!-- start of flv player -->
-<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8" width="80%" height="98%" id="theMediaPlayer">
-<param name=movie value="flvplayer.swf">
-<param name=quality value="high">
-<param name=bgcolor value="#FFFFFF">
-<param name=allowFullScreen value="true">
-<param name=swLiveConnect value="true">
-<param name=allowScriptAccess value="sameDomain">
-<param name="FlashVars" value="file=/rickroll.flv&overstretch=true&autostart=true">
-<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="80%" height="98%" bgcolor="#000000" name="theMediaPlayer" src="/flvplayer.swf" flashvars="file=/rickroll.flv&overstretch=true&autostart=true">
-</embed>
-</object>
-</center>
-<!-- end of flv player -->
-</body>
-</html>
diff --git a/minikrebs/profiles/rickroller/customfiles/www/rickroll.flv b/minikrebs/profiles/rickroller/customfiles/www/rickroll.flv
deleted file mode 100644
index 1ad37ee1..00000000
--- a/minikrebs/profiles/rickroller/customfiles/www/rickroll.flv
+++ /dev/null
Binary files differ
diff --git a/minikrebs/profiles/rickroller/doc/README.md b/minikrebs/profiles/rickroller/doc/README.md
deleted file mode 100644
index 6f75c0b2..00000000
--- a/minikrebs/profiles/rickroller/doc/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Rickroller Profile
-
-The purpose of the profile is to create an access point where every connection
-is rewritten to rickroll.
-
-First step will be to get a working image without usb-stick.
-
-The next step is to faciliate the power of airbase-ng for even more pwnage.
diff --git a/minikrebs/profiles/rickroller_advanced/airbase-ng b/minikrebs/profiles/rickroller_advanced/airbase-ng
new file mode 100755
index 00000000..f6cfd5a6
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/airbase-ng
Binary files differ
diff --git a/minikrebs/profiles/rickroller_advanced/custom_make b/minikrebs/profiles/rickroller_advanced/custom_make
new file mode 100755
index 00000000..2f92476f
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/custom_make
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+HTTPD="uhttpd uhttpd-mod-tls"
+make image PROFILE=TLWR703 PACKAGES="$HTTPD dnsmasq wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -radvd -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=customfiles/
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/dhcp b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/dhcp
index 79d7bea5..79d7bea5 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/dhcp
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/dhcp
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/firewall b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/firewall
index 56f20aa7..56f20aa7 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/firewall
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/firewall
diff --git a/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/fstab b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/fstab
new file mode 100644
index 00000000..b1e678dc
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/fstab
@@ -0,0 +1,19 @@
+config global automount
+ option from_fstab 1
+ option anon_mount 1
+
+config global autoswap
+ option from_fstab 1
+ option anon_swap 0
+
+config mount
+ option target /overlay
+ option device /dev/sda1
+ option fstype ext4
+ option options rw,sync
+ option enabled 1
+ option enabled_fsck 0
+
+config swap
+ option device /dev/sda2
+ option enabled 1
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/network b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/network
index 7ac322a7..7ac322a7 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/network
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/network
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/system b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/system
index ffbe1530..ffbe1530 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/system
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/system
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/uhttpd b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/uhttpd
index 74695b7c..74695b7c 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/uhttpd
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/uhttpd
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/wireless b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/wireless
index bce01a9e..bce01a9e 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/config/wireless
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/config/wireless
diff --git a/minikrebs/profiles/rickroller_advanced/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/rickroller_advanced/customfiles/etc/dropbear/authorized_keys
new file mode 120000
index 00000000..9c87fc52
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/dropbear/authorized_keys
@@ -0,0 +1 @@
+/root/.ssh/authorized_keys \ No newline at end of file
diff --git a/minikrebs/profiles/rickroller_advanced/customfiles/etc/shadow b/minikrebs/profiles/rickroller_advanced/customfiles/etc/shadow
new file mode 100644
index 00000000..251abaf5
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/shadow
@@ -0,0 +1,5 @@
+root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7:::
+daemon:*:0:0:99999:7:::
+ftp:*:0:0:99999:7:::
+network:*:0:0:99999:7:::
+nobody:*:0:0:99999:7:::
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/uhttpd.crt b/minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.crt
index d406c90f..d406c90f 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/uhttpd.crt
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.crt
Binary files differ
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/uhttpd.key b/minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.key
index d5d163d2..d5d163d2 100644
--- a/minikrebs/profiles/rickroller/customfiles/etc/uhttpd.key
+++ b/minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.key
Binary files differ
diff --git a/minikrebs/profiles/rickroller_advanced/doc/OVERLAY b/minikrebs/profiles/rickroller_advanced/doc/OVERLAY
new file mode 100644
index 00000000..f95d8000
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/doc/OVERLAY
@@ -0,0 +1,6 @@
+# External USB-Stick Overlay
+
+partition as following (using cfdisk/parted/gparted):
+sdx
+ -> sdx2 : swap size ~ 320MB
+ -> sdx1 : ext4 -- The Rest (size > 200MB)
diff --git a/minikrebs/profiles/rickroller_advanced/doc/README.md b/minikrebs/profiles/rickroller_advanced/doc/README.md
new file mode 100644
index 00000000..355bb9ff
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/doc/README.md
@@ -0,0 +1,10 @@
+# Rickroller Profile
+
+The purpose of the profile is to create an access point where every connection
+is rewritten to rickroll.
+
+this is the advanced profile which faciliates an usb-stick to unleash the full
+potential of the platform by using airbase-ng (from aircrack-ng) which will
+answer to all the probe requests, effectively rick-rolling each and everyone.
+
+please also see OVERLAY
diff --git a/minikrebs/profiles/rickroller/customfiles/www/1x1.gif b/minikrebs/profiles/rickroller_advanced/overlay/www/1x1.gif
index 8e91660f..8e91660f 100644
--- a/minikrebs/profiles/rickroller/customfiles/www/1x1.gif
+++ b/minikrebs/profiles/rickroller_advanced/overlay/www/1x1.gif
Binary files differ
diff --git a/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper b/minikrebs/profiles/rickroller_advanced/overlay/www/cgi-bin/rrhelper
index ec328a3b..ec328a3b 100755
--- a/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper
+++ b/minikrebs/profiles/rickroller_advanced/overlay/www/cgi-bin/rrhelper
diff --git a/minikrebs/profiles/rickroller_advanced/overlay/www/index.html b/minikrebs/profiles/rickroller_advanced/overlay/www/index.html
new file mode 100644
index 00000000..46bd7c33
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/overlay/www/index.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>RickRoll'D</title>
+</head>
+<body >
+<center>
+ <h1 style='font-size:400%'>RickRoll'D</h1>
+ <img src='rick.gif' width="50%"><br/>
+ <audio controls id="audio" autoplay loop >
+ <source src="rick.ogg" type="audio/ogg" ></source>
+ </audio>
+</center>
+<script>
+ //try various hacks to get autorun and looping working
+var audio = document.getElementById('audio');
+audio.addEventListener('ended', function(){
+ this.currentTime = 0;
+}, false);
+ audio.addEventListener('canplay', function() {
+ audio.play();
+ });
+ audio.load();
+ audio.play();
+</script>
+<img src="/cgi-bin/rrhelper">
+</body>
+</html>
diff --git a/minikrebs/profiles/rickroller_advanced/overlay/www/rick.gif b/minikrebs/profiles/rickroller_advanced/overlay/www/rick.gif
new file mode 100644
index 00000000..3ce9c237
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/overlay/www/rick.gif
Binary files differ
diff --git a/minikrebs/profiles/rickroller_advanced/overlay/www/rick.ogg b/minikrebs/profiles/rickroller_advanced/overlay/www/rick.ogg
new file mode 100644
index 00000000..f52a3d71
--- /dev/null
+++ b/minikrebs/profiles/rickroller_advanced/overlay/www/rick.ogg
Binary files differ
diff --git a/minikrebs/profiles/rickroller/custom_make b/minikrebs/profiles/rickroller_bare/custom_make
index 25df33c1..25df33c1 100755
--- a/minikrebs/profiles/rickroller/custom_make
+++ b/minikrebs/profiles/rickroller_bare/custom_make
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/dhcp b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/dhcp
new file mode 100644
index 00000000..79d7bea5
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/dhcp
@@ -0,0 +1,28 @@
+config dnsmasq
+ option domainneeded 1
+ option boguspriv 1
+ option filterwin2k 0 # enable for dial on demand
+ option localise_queries 1
+ option rebind_protection 1 # disable if upstream must serve RFC191
+8 addresses
+ option rebind_localhost 1 # enable for RBL checking and similar se
+rvices
+ #list rebind_domain example.lan # whitelist RFC1918 responses for
+domains
+ #option local '/lan/'
+ #option domain 'lan'
+ option expandhosts 1
+ option nonegcache 0
+ option authoritative 1
+ option readethers 1
+ option leasefile '/tmp/dhcp.leases'
+ option resolvfile '/tmp/resolv.conf.auto'
+
+config dhcp wlan
+ option interface lan
+ option start 100
+ option limit 150
+ option leasetime 12h
+config 'domain'
+ option name '#'
+ option ip '192.168.23.1'
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/firewall b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/firewall
new file mode 100644
index 00000000..56f20aa7
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/firewall
@@ -0,0 +1,112 @@
+config defaults
+ option syn_flood 1
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+
+config zone
+ option name lan
+ option network 'lan'
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+
+config zone
+ option name wan
+ option network 'wan'
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+ option masq 1
+ option mtu_fix 1
+
+config forwarding
+ option src lan
+ option dest wan
+
+# We need to accept udp packets on port 68,
+# see https://dev.openwrt.org/ticket/4108
+config rule
+ option name Allow-DHCP-Renew
+ option src wan
+ option proto udp
+ option dest_port 68
+ option target ACCEPT
+ option family ipv4
+
+# Allow IPv4 ping
+config rule
+ option name Allow-Ping
+ option src wan
+ option proto icmp
+ option icmp_type echo-request
+ option family ipv4
+ option target ACCEPT
+
+# Allow DHCPv6 replies
+# see https://dev.openwrt.org/ticket/10381
+config rule
+ option name Allow-DHCPv6
+ option src wan
+ option proto udp
+ option src_ip fe80::/10
+ option src_port 547
+ option dest_ip fe80::/10
+ option dest_port 546
+ option family ipv6
+ option target ACCEPT
+
+# Allow essential incoming IPv6 ICMP traffic
+config rule
+ option name Allow-ICMPv6-Input
+ option src wan
+ option proto icmp
+ list icmp_type echo-request
+ list icmp_type echo-reply
+ list icmp_type destination-unreachable
+ list icmp_type packet-too-big
+ list icmp_type time-exceeded
+ list icmp_type bad-header
+ list icmp_type unknown-header-type
+ list icmp_type router-solicitation
+ list icmp_type neighbour-solicitation
+ list icmp_type router-advertisement
+ list icmp_type neighbour-advertisement
+ option limit 1000/sec
+ option family ipv6
+ option target ACCEPT
+
+# Allow essential forwarded IPv6 ICMP traffic
+config rule
+ option name Allow-ICMPv6-Forward
+ option src wan
+ option dest *
+ option proto icmp
+ list icmp_type echo-request
+ list icmp_type echo-reply
+ list icmp_type destination-unreachable
+ list icmp_type packet-too-big
+ list icmp_type time-exceeded
+ list icmp_type bad-header
+ list icmp_type unknown-header-type
+ option limit 1000/sec
+ option family ipv6
+ option target ACCEPT
+
+config redirect
+ option src lan
+ option proto tcp
+ option src_dport 80
+ option src_ip !192.168.23.1
+ option dest_port 80
+ option dest_ip 192.168.23.1
+ option target DNAT
+
+config redirect
+ option src lan
+ option proto tcp
+ option src_dport 443
+ option src_ip !192.168.23.1
+ option dest_port 443
+ option dest_ip 192.168.23.1
+ option target DNAT
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/network b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/network
new file mode 100644
index 00000000..7ac322a7
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/network
@@ -0,0 +1,15 @@
+config interface 'loopback'
+ option ifname 'lo'
+ option proto 'static'
+ option ipaddr '127.0.0.1'
+ option netmask '255.0.0.0'
+
+config interface 'wan'
+ option ifname 'eth0'
+ option proto 'dhcp'
+
+config interface 'lan'
+ option ifname 'wlan0'
+ option proto 'static'
+ option ipaddr 192.168.23.1
+ option netmask 255.255.255.0
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/system b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/system
new file mode 100644
index 00000000..ffbe1530
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/system
@@ -0,0 +1,8 @@
+config system
+ option hostname rickroller
+ option timezone UTC
+
+config 'led' 'lan_led'
+ option 'name' 'blue-led'
+ option 'sysfs' 'tp-link:blue:system'
+ option 'trigger' 'default-on'
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/uhttpd b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/uhttpd
new file mode 100644
index 00000000..74695b7c
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/uhttpd
@@ -0,0 +1,13 @@
+config uhttpd main
+ list listen_http 0.0.0.0:80
+ list listen_https 0.0.0.0:443
+ option home /www
+ option rfc1918_filter 1
+ option max_requests 3
+ option cert /etc/uhttpd.crt
+ option key /etc/uhttpd.key
+ option cgi_prefix /cgi-bin
+ option script_timeout 60
+ option network_timeout 30
+ option tcp_keepalive 1
+ option error_page /index.html
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/config/wireless b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/wireless
new file mode 100644
index 00000000..bce01a9e
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/config/wireless
@@ -0,0 +1,19 @@
+config wifi-device radio0
+ option type mac80211
+ option channel 11
+ option macaddr 14:e6:e4:e6:e4:e0
+ option hwmode 11ng
+ option htmode HT20
+ list ht_capab SHORT-GI-20
+ list ht_capab SHORT-GI-40
+ list ht_capab RX-STBC1
+ list ht_capab DSSS_CCK-40
+ # REMOVE THIS LINE TO ENABLE WIFI:
+ option disabled 0
+
+config wifi-iface
+ option device radio0
+ option network lan
+ option mode ap
+ option ssid default
+ option encryption none
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/rickroller_bare/customfiles/etc/dropbear/authorized_keys
new file mode 120000
index 00000000..9c87fc52
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/dropbear/authorized_keys
@@ -0,0 +1 @@
+/root/.ssh/authorized_keys \ No newline at end of file
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/shadow b/minikrebs/profiles/rickroller_bare/customfiles/etc/shadow
new file mode 100644
index 00000000..251abaf5
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/shadow
@@ -0,0 +1,5 @@
+root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7:::
+daemon:*:0:0:99999:7:::
+ftp:*:0:0:99999:7:::
+network:*:0:0:99999:7:::
+nobody:*:0:0:99999:7:::
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.crt b/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.crt
new file mode 100644
index 00000000..d406c90f
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.crt
Binary files differ
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.key b/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.key
new file mode 100644
index 00000000..d5d163d2
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.key
Binary files differ
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/1x1.gif b/minikrebs/profiles/rickroller_bare/customfiles/www/1x1.gif
new file mode 100644
index 00000000..8e91660f
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/www/1x1.gif
Binary files differ
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper b/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper
new file mode 100755
index 00000000..ec328a3b
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+RRLOG="/tmp/rrlog"
+
+if [ -n "$RRLOG" ]; then
+ echo `awk '{print $1}' /proc/uptime` $REMOTE_ADDR:$REMOTE_PORT \'$HTTP_REFERER\' \'$HTTP_USER_AGENT\' >>"$RRLOG"
+fi
+
+# To signal a rickroll, blink for 15 seconds
+(echo timer > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger ;sleep 15;echo none > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger) &
+
+
+echo "Content-type: image/gif"
+echo ""
+cat /www/1x1.gif
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/index.html b/minikrebs/profiles/rickroller_bare/customfiles/www/index.html
new file mode 100644
index 00000000..46bd7c33
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/www/index.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>RickRoll'D</title>
+</head>
+<body >
+<center>
+ <h1 style='font-size:400%'>RickRoll'D</h1>
+ <img src='rick.gif' width="50%"><br/>
+ <audio controls id="audio" autoplay loop >
+ <source src="rick.ogg" type="audio/ogg" ></source>
+ </audio>
+</center>
+<script>
+ //try various hacks to get autorun and looping working
+var audio = document.getElementById('audio');
+audio.addEventListener('ended', function(){
+ this.currentTime = 0;
+}, false);
+ audio.addEventListener('canplay', function() {
+ audio.play();
+ });
+ audio.load();
+ audio.play();
+</script>
+<img src="/cgi-bin/rrhelper">
+</body>
+</html>
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/rick.gif b/minikrebs/profiles/rickroller_bare/customfiles/www/rick.gif
new file mode 100644
index 00000000..3ce9c237
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/www/rick.gif
Binary files differ
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/rick.ogg b/minikrebs/profiles/rickroller_bare/customfiles/www/rick.ogg
new file mode 100644
index 00000000..f52a3d71
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/customfiles/www/rick.ogg
Binary files differ
diff --git a/minikrebs/profiles/rickroller_bare/doc/README.md b/minikrebs/profiles/rickroller_bare/doc/README.md
new file mode 100644
index 00000000..f66c191f
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/doc/README.md
@@ -0,0 +1,21 @@
+# Rickroller Profile
+
+The purpose of the profile is to create an access point where every connection
+is rewritten to rickroll.
+
+This is the bare profile, providing a basic installation of the rickroller but
+everything fits into the 4mb of flash memory of the krebsplug.
+
+As video autostarting is quite difficult at mobile victims to acchieve,
+a short gif with rick dancing plus the first minute of its famous song will be
+served by the httpd.
+
+The dnsmasq will resolve every domain request to the plugs ip-address
+
+
+# Rickroll Loop
+
+8.8 --> 17.3 ; startup loop
+26.3 --> 34 ; were no strangers to love, you know the rules and so do i
+26.3 --> 42.6 ; ... gotta make you understand
+?? --> ?? ; refrain
diff --git a/minikrebs/profiles/rickroller_bare/doc/videoconvert b/minikrebs/profiles/rickroller_bare/doc/videoconvert
new file mode 100644
index 00000000..e514b85a
--- /dev/null
+++ b/minikrebs/profiles/rickroller_bare/doc/videoconvert
@@ -0,0 +1,7 @@
+# To be supported by android:
+ffmpeg -i rick720p.mp4 -ss 8.8 -t 8.5 -strict -2 -s 320x240 -vcodec mpeg4 -acodec aac -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 output-video.mp4
+
+
+# audio convert
+ffmpeg -i rick720p.mp4 -ss 7 -t 45 -ac 1 -ar 16000 -ab 64k -vn -acodec libvorbis rick.ogg
+ffmpeg -i rick720p.mp4 -ss 7 -t 45 -ac 1 -ar 16000 -ab 64k -vn rick.mp3
diff --git a/minikrebs/profiles/streamerkrebs/custom_make b/minikrebs/profiles/streamerkrebs/custom_make
index 2579fed9..c0ef7104 100755
--- a/minikrebs/profiles/streamerkrebs/custom_make
+++ b/minikrebs/profiles/streamerkrebs/custom_make
@@ -1,3 +1,3 @@
#!/bin/sh
-make image PROFILE=TLWR703 PACKAGES="wireless-tools kmod-usb-core kmod-usb2 -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc -radvd" FILES=customfiles/
+make image PROFILE=TLWR703 PACKAGES="wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage kmod-fs-ext4 -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc -radvd" FILES=customfiles/
diff --git a/minikrebs/profiles/streamerkrebs/doc/README.md b/minikrebs/profiles/streamerkrebs/doc/README.md
new file mode 100644
index 00000000..32a2cf2a
--- /dev/null
+++ b/minikrebs/profiles/streamerkrebs/doc/README.md
@@ -0,0 +1,3 @@
+# Introduction
+- Streamerkrebs will require an usb-hub plus usb-stick and webcam in order to
+ do the right thing
diff --git a/minikrebs/profiles/wifibridge/.gitignore b/minikrebs/profiles/wifibridge/.gitignore
new file mode 100644
index 00000000..44fa020f
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/.gitignore
@@ -0,0 +1 @@
+customfiles/etc/tinc
diff --git a/minikrebs/profiles/wifibridge/custom_make b/minikrebs/profiles/wifibridge/custom_make
new file mode 100755
index 00000000..53e23d90
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/custom_make
@@ -0,0 +1,2 @@
+#!/bin/sh
+make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-fs-ext4 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -radvd -dnsmasq" FILES=customfiles/
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/config/firewall b/minikrebs/profiles/wifibridge/customfiles/etc/config/firewall
new file mode 100644
index 00000000..fa8730af
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/config/firewall
@@ -0,0 +1,104 @@
+config defaults
+ option syn_flood 1
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+# Uncomment this line to disable ipv6 rules
+# option disable_ipv6 1
+
+config zone
+ option name lan
+ option network 'lan'
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+
+config zone
+ option name wan
+ option network 'wan'
+ option input REJECT
+ option output ACCEPT
+ option forward REJECT
+ option masq 1
+ option mtu_fix 1
+
+config forwarding
+ option src lan
+ option dest wlan
+
+config forwarding
+ option src wlan
+ option dest lan
+
+# We need to accept udp packets on port 68,
+# see https://dev.openwrt.org/ticket/4108
+config rule
+ option name Allow-DHCP-Renew
+ option src wan
+ option proto udp
+ option dest_port 68
+ option target ACCEPT
+ option family ipv4
+
+# Allow IPv4 ping
+config rule
+ option name Allow-Ping
+ option src wan
+ option proto icmp
+ option icmp_type echo-request
+ option family ipv4
+ option target ACCEPT
+
+# Allow DHCPv6 replies
+# see https://dev.openwrt.org/ticket/10381
+config rule
+ option name Allow-DHCPv6
+ option src wan
+ option proto udp
+ option src_ip fe80::/10
+ option src_port 547
+ option dest_ip fe80::/10
+ option dest_port 546
+ option family ipv6
+ option target ACCEPT
+
+# Allow essential incoming IPv6 ICMP traffic
+config rule
+ option name Allow-ICMPv6-Input
+ option src wan
+ option proto icmp
+ list icmp_type echo-request
+ list icmp_type echo-reply
+ list icmp_type destination-unreachable
+ list icmp_type packet-too-big
+ list icmp_type time-exceeded
+ list icmp_type bad-header
+ list icmp_type unknown-header-type
+ list icmp_type router-solicitation
+ list icmp_type neighbour-solicitation
+ list icmp_type router-advertisement
+ list icmp_type neighbour-advertisement
+ option limit 1000/sec
+ option family ipv6
+ option target ACCEPT
+
+# Allow essential forwarded IPv6 ICMP traffic
+config rule
+ option name Allow-ICMPv6-Forward
+ option src wan
+ option dest *
+ option proto icmp
+ list icmp_type echo-request
+ list icmp_type echo-reply
+ list icmp_type destination-unreachable
+ list icmp_type packet-too-big
+ list icmp_type time-exceeded
+ list icmp_type bad-header
+ list icmp_type unknown-header-type
+ option limit 1000/sec
+ option family ipv6
+ option target ACCEPT
+
+# include a file with users custom iptables rules
+config include
+ option path /etc/firewall.user
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/config/fstab b/minikrebs/profiles/wifibridge/customfiles/etc/config/fstab
new file mode 100644
index 00000000..b1e678dc
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/config/fstab
@@ -0,0 +1,19 @@
+config global automount
+ option from_fstab 1
+ option anon_mount 1
+
+config global autoswap
+ option from_fstab 1
+ option anon_swap 0
+
+config mount
+ option target /overlay
+ option device /dev/sda1
+ option fstype ext4
+ option options rw,sync
+ option enabled 1
+ option enabled_fsck 0
+
+config swap
+ option device /dev/sda2
+ option enabled 1
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/config/network b/minikrebs/profiles/wifibridge/customfiles/etc/config/network
new file mode 100644
index 00000000..af6b3e70
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/config/network
@@ -0,0 +1,17 @@
+config interface 'loopback'
+ option ifname 'lo'
+ option proto 'static'
+ option ipaddr '127.0.0.1'
+ option netmask '255.0.0.0'
+
+#config interface 'lan'
+ #option ifname 'eth0'
+ #option type 'bridge'
+ #option proto 'static'
+ #option ipaddr '192.168.1.1'
+ #option netmask '255.255.255.0'
+
+config interface 'lan'
+ option ifname 'eth0'
+ option type 'bridge'
+ option proto 'dhcp'
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/config/wireless b/minikrebs/profiles/wifibridge/customfiles/etc/config/wireless
new file mode 100644
index 00000000..8500741e
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/config/wireless
@@ -0,0 +1,21 @@
+config wifi-device radio0
+ option disabled 0
+ option type mac80211
+ option channel 11
+ option macaddr ec:17:2f:dd:28:ae
+ option hwmode 11ng
+ option htmode HT20
+ list ht_capab SHORT-GI-20
+ list ht_capab SHORT-GI-40
+ list ht_capab RX-STBC1
+ list ht_capab DSSS_CCK-40
+
+## Access Point mode
+config wifi-iface
+ option device radio0
+ option network lan
+ option mode ap
+ option ssid MaintenanceNet
+ option encryption psk2
+ option key 'lolwut internet'
+ option hidden 1
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/wifibridge/customfiles/etc/dropbear/authorized_keys
new file mode 120000
index 00000000..9c87fc52
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/dropbear/authorized_keys
@@ -0,0 +1 @@
+/root/.ssh/authorized_keys \ No newline at end of file
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/rc.local b/minikrebs/profiles/wifibridge/customfiles/etc/rc.local
new file mode 100644
index 00000000..001b873f
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/rc.local
@@ -0,0 +1,4 @@
+[ ! -e /etc/hostid ] && /usr/bin/genhostid
+[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest &
+tincd -n retiolum
+exit 0
diff --git a/minikrebs/profiles/wifibridge/customfiles/etc/shadow b/minikrebs/profiles/wifibridge/customfiles/etc/shadow
new file mode 100644
index 00000000..251abaf5
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/etc/shadow
@@ -0,0 +1,5 @@
+root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7:::
+daemon:*:0:0:99999:7:::
+ftp:*:0:0:99999:7:::
+network:*:0:0:99999:7:::
+nobody:*:0:0:99999:7:::
diff --git a/minikrebs/profiles/wifibridge/customfiles/root/.ssh/authorized_keys b/minikrebs/profiles/wifibridge/customfiles/root/.ssh/authorized_keys
new file mode 100644
index 00000000..26a68430
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/root/.ssh/authorized_keys
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl3RTOHd5DLiVeUbUr/GSiKoRWknXQnbkIf+uNiFO+XxiqZVojPlumQUVhasY8UzDzj9tSDruUKXpjut50FhIO5UFAgsBeMJyoZbgY/+R+QKU00Q19+IiUtxeFol/9dCO+F4o937MC0OpAC10LbOXN/9SYIXueYk3pJxIycXwUqhYmyEqtDdVh9Rx32LBVqlBoXRHpNGPLiswV2qNe0b5p919IGcslzf1XoUzfE3a3yjk/XbWh/59xnl4V7Oe7+iQheFxOT6rFA30WYwEygs5As//ZYtxvnn0gA02gOnXJsNjOW9irlxOUeP7IOU6Ye3WRKFRR0+7PS+w8IJLag2xb makefu@arch
diff --git a/minikrebs/profiles/wifibridge/customfiles/usr/bin/autoinfest b/minikrebs/profiles/wifibridge/customfiles/usr/bin/autoinfest
new file mode 100755
index 00000000..a30c1a2b
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/usr/bin/autoinfest
@@ -0,0 +1,4 @@
+#!/bin/sh
+printf "enter your tincname:"
+HOSTNAME=$(uci get system.@system[0].hostname)_$(hostid)
+wget -O- http://tinc.krebsco.de | HOSTN=$HOSTNAME sh
diff --git a/minikrebs/profiles/wifibridge/customfiles/usr/bin/genhostid b/minikrebs/profiles/wifibridge/customfiles/usr/bin/genhostid
new file mode 100755
index 00000000..463e04b7
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/usr/bin/genhostid
@@ -0,0 +1,2 @@
+#!/bin/sh
+dd if=/dev/urandom bs=1 count=4> /etc/hostid
diff --git a/minikrebs/profiles/wifibridge/customfiles/usr/bin/led b/minikrebs/profiles/wifibridge/customfiles/usr/bin/led
new file mode 100755
index 00000000..e3e998a8
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/usr/bin/led
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ x${:-} = x ] && echo "usage: $0 [0|1]" && exit 1
+echo $1 > /sys/class/leds/tp-link\:blue\:system/brightness
diff --git a/minikrebs/profiles/wifibridge/customfiles/usr/bin/tinc-update b/minikrebs/profiles/wifibridge/customfiles/usr/bin/tinc-update
new file mode 100755
index 00000000..4ff46b8f
--- /dev/null
+++ b/minikrebs/profiles/wifibridge/customfiles/usr/bin/tinc-update
@@ -0,0 +1,4 @@
+#!/bin/sh
+if test -e /etc/tinc/retiolum; then
+ if ping -c 1 euer.krebsco.de -W 5 &>/dev/null; then (wget -O- http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C /etc/tinc/retiolum/hosts/);fi
+fi
diff --git a/minikrebs/upgrade b/minikrebs/upgrade
index e36ed5ad..ee41743b 100755
--- a/minikrebs/upgrade
+++ b/minikrebs/upgrade
@@ -22,8 +22,8 @@ if [ -e "$IMAGE" ];then
sleep 1
SERVER_PID=$!
ssh root@$IP "wget -O /tmp/firmware.bin http://${OWN_ADDR}:${PORT}/${IMAGE} \
- && mtd write /tmp/firmware.bin firmware \
- && reboot"
+ && /sbin/mtd write /tmp/firmware.bin firmware \
+ && /sbin/reboot"
kill $SERVER_PID
else
echo "cannot find ar71xx build, aborting"
[cgit] Unable to lock slot /tmp/cgit/77100000.lock: No such file or directory (2)