From 2bcf2f215b9b5e1caa3ec7934c7e7b9fb255147d Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 4 Jan 2013 06:36:26 +0700 Subject: rebuild minikrebs folder --- minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg | 231 +++++++++++++++++++++ .../heckenkrebs/customfiles/etc/config/network | 17 ++ .../heckenkrebs/customfiles/etc/config/wireless | 18 ++ .../profiles/heckenkrebs/customfiles/etc/rc.local | 7 + .../profiles/heckenkrebs/customfiles/etc/wifiblack | 0 .../profiles/heckenkrebs/customfiles/etc/wifipw | 1 + .../profiles/heckenkrebs/customfiles/usr/bin/aap | 115 ++++++++++ .../heckenkrebs/customfiles/usr/bin/easybox_keygen | 40 ++++ .../heckenkrebs/customfiles/usr/bin/infest | 4 + .../heckenkrebs/customfiles/usr/bin/ledoff | 2 + .../heckenkrebs/customfiles/usr/bin/tinc-update | 4 + 11 files changed, 439 insertions(+) create mode 100644 minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg create mode 100644 minikrebs/profiles/heckenkrebs/customfiles/etc/config/network create mode 100644 minikrebs/profiles/heckenkrebs/customfiles/etc/config/wireless create mode 100644 minikrebs/profiles/heckenkrebs/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/heckenkrebs/customfiles/etc/wifiblack create mode 100644 minikrebs/profiles/heckenkrebs/customfiles/etc/wifipw create mode 100755 minikrebs/profiles/heckenkrebs/customfiles/usr/bin/aap create mode 100755 minikrebs/profiles/heckenkrebs/customfiles/usr/bin/easybox_keygen create mode 100755 minikrebs/profiles/heckenkrebs/customfiles/usr/bin/infest create mode 100755 minikrebs/profiles/heckenkrebs/customfiles/usr/bin/ledoff create mode 100755 minikrebs/profiles/heckenkrebs/customfiles/usr/bin/tinc-update (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg b/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg new file mode 100644 index 00000000..4f376059 --- /dev/null +++ b/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + LAZORCAM + Boot: - Lazorcam hat Stom wenn die blaue LED leuchtet- Wenn die LED vom Zustand "Blinkend" in den Zustand "durchgängig Leuchtend" gewechselt ist, ist der Bootvorgang abgeschlossen + Schaue dem Lazor beim Arbeiten zu + + Erreichbarkeit: HTTP: VLC: File -> Open Network Stream -> + http://lazorcam.shack/ + http://lazorcam.shack/?action=stream + + diff --git a/minikrebs/profiles/heckenkrebs/customfiles/etc/config/network b/minikrebs/profiles/heckenkrebs/customfiles/etc/config/network new file mode 100644 index 00000000..2feb7400 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/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 'wan' + option ifname 'wlan0' + option proto 'dhcp' diff --git a/minikrebs/profiles/heckenkrebs/customfiles/etc/config/wireless b/minikrebs/profiles/heckenkrebs/customfiles/etc/config/wireless new file mode 100644 index 00000000..d2dc5a37 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/etc/config/wireless @@ -0,0 +1,18 @@ + +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' + +config wifi-iface + option device 'radio0' + option network 'wan' + option encryption 'none' + option mode 'sta' + option ssid 'linksys' + diff --git a/minikrebs/profiles/heckenkrebs/customfiles/etc/rc.local b/minikrebs/profiles/heckenkrebs/customfiles/etc/rc.local new file mode 100644 index 00000000..9b8eb564 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/etc/rc.local @@ -0,0 +1,7 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +tincd -n retiolum 2>/dev/null +aap & + +exit 0 diff --git a/minikrebs/profiles/heckenkrebs/customfiles/etc/wifiblack b/minikrebs/profiles/heckenkrebs/customfiles/etc/wifiblack new file mode 100644 index 00000000..e69de29b diff --git a/minikrebs/profiles/heckenkrebs/customfiles/etc/wifipw b/minikrebs/profiles/heckenkrebs/customfiles/etc/wifipw new file mode 100644 index 00000000..d235df78 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/etc/wifipw @@ -0,0 +1 @@ +shack;weissichnichtbinnochneuhierfragmalralf diff --git a/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/aap b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/aap new file mode 100755 index 00000000..75e1cbfe --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/aap @@ -0,0 +1,115 @@ +#!/usr/bin/awk -f + +BEGIN { + chan=0; + essid=""; + encr=0; + psk2=0; + psk=0; + i=0; + # find interface - start by finding if in sta mode + while( "uci show wireless" | getline) { + if(/mode=sta/) { + split($0,wl,"."); + iface=wl[2]; + } + } + close("uci show wireless") + "uci get wireless." iface ".device" | getline radio + close("uci get wireless." iface ".device") + system("ifconfig wlan0 up") + for(;;){ + while( "iwlist wlan0 scan" | getline ) { + scan[i++]=$0; + } + close("iwlist wlan0 scan") + for (j=0;j 0) { + "easybox_keygen " mac | getline rkey + close("easybox_keygen " mac) + } + else { + print essid " is encrypted and key not in whitelist"; + continue; + } + } + } + system("uci set wireless." radio ".channel=" channel); + system("uci set wireless." iface ".ssid=" essid); + if (crypt == "none") { + system("uci set wireless." iface ".encryption=none"); + system("uci -q delete wireless." iface ".key"); + } + else { + system("uci set wireless." iface ".key=" rkey); + system("uci set wireless." iface ".encryption=" crypt); + } + system("uci show wireless > /tmp/keepalive"); + system("wifi up"); + while(system("sleep 60; wget -q -T 30 -O /dev/null http://google.com/index.html") == 0) { + system("ledoff") + } + } + else { + # now test for the things we want + # channel + if (/Channel:[0-9]/) { + m=match($0,"Channel"); + if (RSTART > 0) { + s=substr($0,m); + n=match(s,/[0-9]+/); + chan=substr(s,n,RLENGTH) + } + continue; + } + # we don't need else as we break on successful find + if (/^ *ESSID/) { + m=match($0,"\".*\""); + if (RSTART > 0) essid=substr($0,m+1,RLENGTH-2); + continue; + } + if (/^ *Encryption key:on/) { + encr = 1; + continue; + } + if (/^ *IE: IEEE 802.11i\/WPA2/) { + psk2=1; + continue; + } + if (/^ *IE: WPA /) { + psk=1; + continue; + } + } + } + } + } diff --git a/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/easybox_keygen b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/easybox_keygen new file mode 100755 index 00000000..e9a9beca --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/easybox_keygen @@ -0,0 +1,40 @@ +#!/bin/sh +# +# easybox_keygen.sh (c) 2012 GPLv3 +# +# www.wotan.cc +# + +MAC=$1 + +# Take the last 2 Bytes of the MAC-Address (0B:EC), and convert it to decimal. + +take5=${MAC:12} +last4=${take5/:/} + +# Fill up to 4 places with zeros, if necessary: +deci=$(printf "%04d" "0x$last4" | sed 's/.*\(....\)/\1/;s/./& /g') +#echo M4: ${deci[@]} +# +# The digits M9 to M12 are just the last digits (9.-12.) of the MAC: +hexi=$(echo ${MAC:12:5} | sed 's/://;s/./& /g') +#echo 'M4 (Hex): ' ${hexi[@]} +# K1 = last byte of (d0 + d1 + h2 + h3) +# K2 = last byte of (h0 + h1 + d2 + d3) +c1=$(printf "%d + %d + %d + %d" ${deci:0:1} ${deci:2:1} 0x${hexi:4:1} 0x${hexi:6:1}) +c2=$(printf "%d + %d + %d + %d" 0x${hexi:0:1} 0x${hexi:2:1} ${deci:4:1} ${deci:6:1}) +K1=$((($c1)%16)) +K2=$((($c2)%16)) +#printf "K1: %x\n" $K1 +#printf "K2: %x\n" $K2 +X1=$((K1^${deci:6:1})) +X2=$((K1^${deci:4:1})) +X3=$((K1^${deci:2:1})) +Y1=$((K2^0x${hexi:2:1})) +Y2=$((K2^0x${hexi:4:1})) +Y3=$((K2^0x${hexi:6:1})) +Z1=$((0x${hexi:4:1}^${deci:6:1})) +Z2=$((0x${hexi:6:1}^${deci:4:1})) +Z3=$((K1^K2)) +printf "%x%x%x%x%x%x%x%x%x\n" $X1 $Y1 $Z1 $X2 $Y2 $Z2 $X3 $Y3 $Z3 | tr a-f A-F + diff --git a/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/infest b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/infest new file mode 100755 index 00000000..f1bcc594 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/infest @@ -0,0 +1,4 @@ +#!/bin/sh +printf "enter your tincname:" +read HOSTNAME +curl tinc.krebsco.de | HOSTN=$HOSTNAME sh diff --git a/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/ledoff b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/ledoff new file mode 100755 index 00000000..0bc6ec7a --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/ledoff @@ -0,0 +1,2 @@ +#!/bin/sh +echo 0 > /sys/class/leds/tp-link\:blue\:system/brightness diff --git a/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/tinc-update b/minikrebs/profiles/heckenkrebs/customfiles/usr/bin/tinc-update new file mode 100755 index 00000000..2c6ec432 --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/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 (curl http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C /etc/tinc/retiolum/hosts/);fi +fi -- cgit v1.2.3 From cccb26af3cf48fe74e506dd493806701bbdbed5e Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 4 Jan 2013 10:00:20 +0700 Subject: refactor minikrebs profiles ./prepare prepares the openwrt build environment and copies the requested profile files into build environment --- minikrebs/profiles/README | 4 + minikrebs/profiles/camkrebs/custom_make | 3 + .../camkrebs/customfiles/etc/config/mjpg-streamer | 7 + .../camkrebs/customfiles/etc/config/network | 9 + .../profiles/camkrebs/customfiles/etc/rc.local | 1 + minikrebs/profiles/camkrebs/customfiles/etc/shadow | 5 + minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg | 231 --------------------- minikrebs/profiles/heckenkrebs/custom_make | 2 + minikrebs/profiles/init | 25 +++ 9 files changed, 56 insertions(+), 231 deletions(-) create mode 100644 minikrebs/profiles/README create mode 100644 minikrebs/profiles/camkrebs/custom_make create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/network create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/shadow delete mode 100644 minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg create mode 100755 minikrebs/profiles/heckenkrebs/custom_make create mode 100755 minikrebs/profiles/init (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/README b/minikrebs/profiles/README new file mode 100644 index 00000000..fc1e8945 --- /dev/null +++ b/minikrebs/profiles/README @@ -0,0 +1,4 @@ + +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. diff --git a/minikrebs/profiles/camkrebs/custom_make b/minikrebs/profiles/camkrebs/custom_make new file mode 100644 index 00000000..752a7bfe --- /dev/null +++ b/minikrebs/profiles/camkrebs/custom_make @@ -0,0 +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-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc mjpg-streamer" FILES=customfiles/ diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..bb4f81ec --- /dev/null +++ b/minikrebs/profiles/camkrebs/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/camkrebs/customfiles/etc/config/network b/minikrebs/profiles/camkrebs/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/camkrebs/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/camkrebs/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs/customfiles/etc/rc.local new file mode 100644 index 00000000..3e91b57c --- /dev/null +++ b/minikrebs/profiles/camkrebs/customfiles/etc/rc.local @@ -0,0 +1 @@ +insmod uvcvideo diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/shadow b/minikrebs/profiles/camkrebs/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/camkrebs/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/camkrebs/doc/lazorcam_druck.svg b/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg deleted file mode 100644 index 4f376059..00000000 --- a/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - LAZORCAM - Boot: - Lazorcam hat Stom wenn die blaue LED leuchtet- Wenn die LED vom Zustand "Blinkend" in den Zustand "durchgängig Leuchtend" gewechselt ist, ist der Bootvorgang abgeschlossen - Schaue dem Lazor beim Arbeiten zu - - Erreichbarkeit: HTTP: VLC: File -> Open Network Stream -> - http://lazorcam.shack/ - http://lazorcam.shack/?action=stream - - diff --git a/minikrebs/profiles/heckenkrebs/custom_make b/minikrebs/profiles/heckenkrebs/custom_make new file mode 100755 index 00000000..4694530b --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/custom_make @@ -0,0 +1,2 @@ +#!/bin/sh +make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 kmod-fs-ext4 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=customfiles/ diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init new file mode 100755 index 00000000..b7c1e8e9 --- /dev/null +++ b/minikrebs/profiles/init @@ -0,0 +1,25 @@ +#!/bin/sh + +cd $(dirname $(readlink -f $0)) +if [ ! -e Makefile ] ;then + echo "ImageBuilder not checked out yet" + echo "try running ../prepare $$PROFILE" + exit 1 +fi + +echo +if [ -e ./custom_make ];then + echo "Starting Custom Make" + sh ./custom_make +else + echo "No Custom Make Script exists, bailing out!" + exit 1 +fi + +echo +cat << EOF +finished building +You can use the following images: + Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin + System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin +EOF -- cgit v1.2.3 From 70519559b2127c594527ee1cccde48b9259dba2f Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 4 Jan 2013 11:16:10 +0700 Subject: minikrebs: print dot instead of whole line of output --- minikrebs/profiles/init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init index b7c1e8e9..f20e9b75 100755 --- a/minikrebs/profiles/init +++ b/minikrebs/profiles/init @@ -10,7 +10,9 @@ fi echo if [ -e ./custom_make ];then echo "Starting Custom Make" - sh ./custom_make + sh ./custom_make 2>/dev/null | while read line; do + echo -n . + done else echo "No Custom Make Script exists, bailing out!" exit 1 -- cgit v1.2.3 From 393e9e0aa1fae52ecb9b49d82875c857699451b9 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 5 Jan 2013 09:13:24 +0700 Subject: minikrebs/profiles: usbbridge - initial commit --- minikrebs/profiles/usbbridge/custom_make | 3 +++ .../usbbridge/customfiles/etc/config/mjpg-streamer | 7 +++++++ .../usbbridge/customfiles/etc/config/network | 9 +++++++++ .../customfiles/etc/dropbear/authorized_keys | 1 + .../profiles/usbbridge/customfiles/etc/rc.local | 3 +++ minikrebs/profiles/usbbridge/customfiles/etc/shadow | 5 +++++ minikrebs/profiles/usbbridge/doc/README | 21 +++++++++++++++++++++ 7 files changed, 49 insertions(+) create mode 100755 minikrebs/profiles/usbbridge/custom_make create mode 100644 minikrebs/profiles/usbbridge/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/usbbridge/customfiles/etc/config/network create mode 120000 minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys create mode 100644 minikrebs/profiles/usbbridge/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/usbbridge/customfiles/etc/shadow create mode 100644 minikrebs/profiles/usbbridge/doc/README (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/usbbridge/custom_make b/minikrebs/profiles/usbbridge/custom_make new file mode 100755 index 00000000..ed43f4fe --- /dev/null +++ b/minikrebs/profiles/usbbridge/custom_make @@ -0,0 +1,3 @@ +#!/bin/sh + +make image PROFILE=TLWR703 PACKAGES="tinc ip wireless-tools kmod-usb-core kmod-usb2 usbip-server -radvd -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/ diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/usbbridge/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..bb4f81ec --- /dev/null +++ b/minikrebs/profiles/usbbridge/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/usbbridge/customfiles/etc/config/network b/minikrebs/profiles/usbbridge/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/usbbridge/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/usbbridge/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/rc.local b/minikrebs/profiles/usbbridge/customfiles/etc/rc.local new file mode 100644 index 00000000..49ae50b3 --- /dev/null +++ b/minikrebs/profiles/usbbridge/customfiles/etc/rc.local @@ -0,0 +1,3 @@ +insmod usbip-host +usbip bind -b 1-1 +usbipd -D diff --git a/minikrebs/profiles/usbbridge/customfiles/etc/shadow b/minikrebs/profiles/usbbridge/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/usbbridge/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/usbbridge/doc/README b/minikrebs/profiles/usbbridge/doc/README new file mode 100644 index 00000000..68e6a979 --- /dev/null +++ b/minikrebs/profiles/usbbridge/doc/README @@ -0,0 +1,21 @@ +# usbbridge + +krebsplug will start up as usbbridge with usbip-utils. +it will run an usbipd and grab an ip-address via dhcp. + +# setup +connect usb-device and then connect krebsplug to power. +when changing the usb-device, detach it on the client side, +power off the krebsplug, attach usb device and power up +then. + +# usage +## client side attach + + modprobe vhci-hcd + usbip list -r <> + usbip attach -h <> -p 1-1 + +## client side detach + + usbip detach -p 0 -- cgit v1.2.3 From e7a3f51ccc15dcc76d005f225599e3f32c3c42d7 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Jan 2013 05:39:54 +0700 Subject: streamerkrebs: initial commit --- minikrebs/profiles/streamerkrebs/custom_make | 3 +++ .../streamerkrebs/customfiles/etc/config/mjpg-streamer | 7 +++++++ .../profiles/streamerkrebs/customfiles/etc/config/network | 9 +++++++++ .../streamerkrebs/customfiles/etc/dropbear/authorized_keys | 1 + minikrebs/profiles/streamerkrebs/customfiles/etc/rc.local | 1 + minikrebs/profiles/streamerkrebs/customfiles/etc/shadow | 5 +++++ .../streamerkrebs/customfiles/root/load_dependencies | 12 ++++++++++++ 7 files changed, 38 insertions(+) create mode 100755 minikrebs/profiles/streamerkrebs/custom_make create mode 100644 minikrebs/profiles/streamerkrebs/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/streamerkrebs/customfiles/etc/config/network create mode 120000 minikrebs/profiles/streamerkrebs/customfiles/etc/dropbear/authorized_keys create mode 100644 minikrebs/profiles/streamerkrebs/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/streamerkrebs/customfiles/etc/shadow create mode 100644 minikrebs/profiles/streamerkrebs/customfiles/root/load_dependencies (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/streamerkrebs/custom_make b/minikrebs/profiles/streamerkrebs/custom_make new file mode 100755 index 00000000..2579fed9 --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/custom_make @@ -0,0 +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/ diff --git a/minikrebs/profiles/streamerkrebs/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/streamerkrebs/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..bb4f81ec --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/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/streamerkrebs/customfiles/etc/config/network b/minikrebs/profiles/streamerkrebs/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/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/streamerkrebs/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/streamerkrebs/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/streamerkrebs/customfiles/etc/rc.local b/minikrebs/profiles/streamerkrebs/customfiles/etc/rc.local new file mode 100644 index 00000000..3e91b57c --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/customfiles/etc/rc.local @@ -0,0 +1 @@ +insmod uvcvideo diff --git a/minikrebs/profiles/streamerkrebs/customfiles/etc/shadow b/minikrebs/profiles/streamerkrebs/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/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/streamerkrebs/customfiles/root/load_dependencies b/minikrebs/profiles/streamerkrebs/customfiles/root/load_dependencies new file mode 100644 index 00000000..dceabe98 --- /dev/null +++ b/minikrebs/profiles/streamerkrebs/customfiles/root/load_dependencies @@ -0,0 +1,12 @@ +#!/bin/sh + +if ping -w 1 google.de;then + echo "loading update" + opkg update + echo "installing ffmpeg" + opkg install ffmpeg +else + echo "no internet connection, bailing out" +fi + + -- cgit v1.2.3 From c2fbad3aac1e2829349d8451b502bca754bb35cf Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Jan 2013 05:43:52 +0700 Subject: minikrebs/profiles: init -initial commit --- minikrebs/profiles/init | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init index f20e9b75..eb5fa2af 100755 --- a/minikrebs/profiles/init +++ b/minikrebs/profiles/init @@ -8,6 +8,7 @@ if [ ! -e Makefile ] ;then fi echo +rm -r bin/ || echo "no bindir, skipping removal" if [ -e ./custom_make ];then echo "Starting Custom Make" sh ./custom_make 2>/dev/null | while read line; do @@ -19,9 +20,20 @@ else fi echo -cat << EOF + +if [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin ]; +then + cat << EOF finished building You can use the following images: Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin EOF +else + cat << EOF +It seems like the factory image has not been created, it is most +likely that the image would be too big and does not fit into the tiny FLASH. + +Try removing modules from \`custom_make\` and retry building. +EOF +fi -- cgit v1.2.3 From 5d777ccc8d1291f00c59e7725ffb1996a43154f3 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Jan 2013 11:58:42 +0700 Subject: minikrebs: krebs base profile - initial vomit --- minikrebs/profiles/README | 4 ---- minikrebs/profiles/README.md | 4 ++++ minikrebs/profiles/krebs/custom_make | 2 ++ .../profiles/krebs/customfiles/etc/config/network | 14 ++++++++++++++ .../profiles/krebs/customfiles/etc/config/system | 11 +++++++++++ minikrebs/profiles/krebs/customfiles/etc/config/tinc | 2 ++ .../profiles/krebs/customfiles/etc/config/wireless | 19 +++++++++++++++++++ .../krebs/customfiles/etc/dropbear/authorized_keys | 1 + minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc | 1 + minikrebs/profiles/krebs/customfiles/etc/rc.local | 3 +++ minikrebs/profiles/krebs/customfiles/etc/shadow | 5 +++++ .../profiles/krebs/customfiles/usr/bin/autoinfest | 4 ++++ .../profiles/krebs/customfiles/usr/bin/genhostid | 4 ++++ minikrebs/profiles/krebs/customfiles/usr/bin/led | 3 +++ .../profiles/krebs/customfiles/usr/bin/tinc-update | 4 ++++ minikrebs/profiles/krebs/doc/README.md | 8 ++++++++ 16 files changed, 85 insertions(+), 4 deletions(-) delete mode 100644 minikrebs/profiles/README create mode 100644 minikrebs/profiles/README.md create mode 100755 minikrebs/profiles/krebs/custom_make create mode 100644 minikrebs/profiles/krebs/customfiles/etc/config/network create mode 100644 minikrebs/profiles/krebs/customfiles/etc/config/system create mode 100644 minikrebs/profiles/krebs/customfiles/etc/config/tinc create mode 100644 minikrebs/profiles/krebs/customfiles/etc/config/wireless create mode 120000 minikrebs/profiles/krebs/customfiles/etc/dropbear/authorized_keys create mode 120000 minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc create mode 100644 minikrebs/profiles/krebs/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/krebs/customfiles/etc/shadow create mode 100755 minikrebs/profiles/krebs/customfiles/usr/bin/autoinfest create mode 100755 minikrebs/profiles/krebs/customfiles/usr/bin/genhostid create mode 100755 minikrebs/profiles/krebs/customfiles/usr/bin/led create mode 100755 minikrebs/profiles/krebs/customfiles/usr/bin/tinc-update create mode 100644 minikrebs/profiles/krebs/doc/README.md (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/README b/minikrebs/profiles/README deleted file mode 100644 index fc1e8945..00000000 --- a/minikrebs/profiles/README +++ /dev/null @@ -1,4 +0,0 @@ - -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. diff --git a/minikrebs/profiles/README.md b/minikrebs/profiles/README.md new file mode 100644 index 00000000..fc1e8945 --- /dev/null +++ b/minikrebs/profiles/README.md @@ -0,0 +1,4 @@ + +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. diff --git a/minikrebs/profiles/krebs/custom_make b/minikrebs/profiles/krebs/custom_make new file mode 100755 index 00000000..cb70f4e8 --- /dev/null +++ b/minikrebs/profiles/krebs/custom_make @@ -0,0 +1,2 @@ +#!/bin/sh +make image PROFILE=TLWR703 PACKAGES="tinc kmod-ipv6 -dnsmasq -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=customfiles/ diff --git a/minikrebs/profiles/krebs/customfiles/etc/config/network b/minikrebs/profiles/krebs/customfiles/etc/config/network new file mode 100644 index 00000000..04722166 --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/etc/config/system b/minikrebs/profiles/krebs/customfiles/etc/config/system new file mode 100644 index 00000000..923755f7 --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/etc/config/tinc new file mode 100644 index 00000000..3a03196c --- /dev/null +++ b/minikrebs/profiles/krebs/customfiles/etc/config/tinc @@ -0,0 +1,2 @@ +config tinc-net retiolum + option enabled 1 diff --git a/minikrebs/profiles/krebs/customfiles/etc/config/wireless b/minikrebs/profiles/krebs/customfiles/etc/config/wireless new file mode 100644 index 00000000..e08a42ed --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/krebs/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/etc/rc.d/tinc new file mode 120000 index 00000000..f08fe11d --- /dev/null +++ b/minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc @@ -0,0 +1 @@ +../init.d/tinc \ No newline at end of file diff --git a/minikrebs/profiles/krebs/customfiles/etc/rc.local b/minikrebs/profiles/krebs/customfiles/etc/rc.local new file mode 100644 index 00000000..1f907dcb --- /dev/null +++ b/minikrebs/profiles/krebs/customfiles/etc/rc.local @@ -0,0 +1,3 @@ +/usr/bin/genhostid +[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest +exit 0 diff --git a/minikrebs/profiles/krebs/customfiles/etc/shadow b/minikrebs/profiles/krebs/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/usr/bin/autoinfest b/minikrebs/profiles/krebs/customfiles/usr/bin/autoinfest new file mode 100755 index 00000000..a30c1a2b --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/usr/bin/genhostid b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid new file mode 100755 index 00000000..e6010471 --- /dev/null +++ b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid @@ -0,0 +1,4 @@ +#!/bin/sh +if [ ! -e /etc/hostid ];then + dd if=/dev/urandom bs=1 count=4 | hexdump -e '8 "%x"' > /etc/hostid +fi diff --git a/minikrebs/profiles/krebs/customfiles/usr/bin/led b/minikrebs/profiles/krebs/customfiles/usr/bin/led new file mode 100755 index 00000000..e3e998a8 --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/customfiles/usr/bin/tinc-update b/minikrebs/profiles/krebs/customfiles/usr/bin/tinc-update new file mode 100755 index 00000000..4ff46b8f --- /dev/null +++ b/minikrebs/profiles/krebs/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/krebs/doc/README.md b/minikrebs/profiles/krebs/doc/README.md new file mode 100644 index 00000000..0d56524e --- /dev/null +++ b/minikrebs/profiles/krebs/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 -- cgit v1.2.3 From 867d77d72852e068a6a113467506e61d33a403a0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 02:37:03 +0700 Subject: camkrebs: update --- minikrebs/profiles/camkrebs/custom_make | 0 minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer | 2 +- minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys | 1 + minikrebs/profiles/krebs/customfiles/usr/bin/genhostid | 4 +--- 4 files changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 minikrebs/profiles/camkrebs/custom_make create mode 120000 minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/camkrebs/custom_make b/minikrebs/profiles/camkrebs/custom_make old mode 100644 new mode 100755 diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer index bb4f81ec..4213b0b2 100644 --- a/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer +++ b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer @@ -2,6 +2,6 @@ config mjpg-streamer core option enabled "1" option device "/dev/video0" option resolution "1280x1024" - option fps "5" + option fps "15" option www "/www/webcam" option port "80" diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/camkrebs/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/usr/bin/genhostid b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid index e6010471..463e04b7 100755 --- a/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid +++ b/minikrebs/profiles/krebs/customfiles/usr/bin/genhostid @@ -1,4 +1,2 @@ #!/bin/sh -if [ ! -e /etc/hostid ];then - dd if=/dev/urandom bs=1 count=4 | hexdump -e '8 "%x"' > /etc/hostid -fi +dd if=/dev/urandom bs=1 count=4> /etc/hostid -- cgit v1.2.3 From bb899884f88136e2d6684b4ee4c0021e18408167 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 05:55:35 +0700 Subject: update camkrebs --- minikrebs/profiles/camkrebs/custom_make | 3 --- minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer | 7 ------- minikrebs/profiles/camkrebs/customfiles/etc/config/network | 9 --------- .../profiles/camkrebs/customfiles/etc/dropbear/authorized_keys | 1 - minikrebs/profiles/camkrebs/customfiles/etc/rc.local | 1 - minikrebs/profiles/camkrebs/customfiles/etc/shadow | 5 ----- minikrebs/profiles/camkrebs_quickcam/custom_make | 3 +++ .../camkrebs_quickcam/customfiles/etc/config/mjpg-streamer | 7 +++++++ .../profiles/camkrebs_quickcam/customfiles/etc/config/network | 9 +++++++++ .../camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys | 1 + .../camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer | 1 + minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow | 5 +++++ minikrebs/profiles/camkrebs_quickcam/doc/README.md | 2 ++ minikrebs/profiles/camkrebs_uvc/custom_make | 3 +++ .../profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer | 7 +++++++ minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network | 9 +++++++++ .../camkrebs_uvc/customfiles/etc/dropbear/authorized_keys | 1 + .../profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer | 1 + minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local | 1 + minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow | 5 +++++ 20 files changed, 55 insertions(+), 26 deletions(-) delete mode 100755 minikrebs/profiles/camkrebs/custom_make delete mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer delete mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/network delete mode 120000 minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys delete mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/rc.local delete mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/shadow create mode 100755 minikrebs/profiles/camkrebs_quickcam/custom_make create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/network create mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys create mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow create mode 100644 minikrebs/profiles/camkrebs_quickcam/doc/README.md create mode 100755 minikrebs/profiles/camkrebs_uvc/custom_make create mode 100644 minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network create mode 120000 minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys create mode 120000 minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/camkrebs/custom_make b/minikrebs/profiles/camkrebs/custom_make deleted file mode 100755 index 752a7bfe..00000000 --- a/minikrebs/profiles/camkrebs/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/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer deleted file mode 100644 index 4213b0b2..00000000 --- a/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer +++ /dev/null @@ -1,7 +0,0 @@ -config mjpg-streamer core - option enabled "1" - option device "/dev/video0" - option resolution "1280x1024" - option fps "15" - option www "/www/webcam" - option port "80" diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/config/network b/minikrebs/profiles/camkrebs/customfiles/etc/config/network deleted file mode 100644 index c459c4e0..00000000 --- a/minikrebs/profiles/camkrebs/customfiles/etc/config/network +++ /dev/null @@ -1,9 +0,0 @@ -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/camkrebs/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys deleted file mode 120000 index 9c87fc52..00000000 --- a/minikrebs/profiles/camkrebs/customfiles/etc/dropbear/authorized_keys +++ /dev/null @@ -1 +0,0 @@ -/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs/customfiles/etc/rc.local deleted file mode 100644 index 3e91b57c..00000000 --- a/minikrebs/profiles/camkrebs/customfiles/etc/rc.local +++ /dev/null @@ -1 +0,0 @@ -insmod uvcvideo diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/shadow b/minikrebs/profiles/camkrebs/customfiles/etc/shadow deleted file mode 100644 index 251abaf5..00000000 --- a/minikrebs/profiles/camkrebs/customfiles/etc/shadow +++ /dev/null @@ -1,5 +0,0 @@ -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/camkrebs_quickcam/custom_make b/minikrebs/profiles/camkrebs_quickcam/custom_make new file mode 100755 index 00000000..a01dba54 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/custom_make @@ -0,0 +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-stv06xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/ diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..7417837e --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer @@ -0,0 +1,7 @@ +config mjpg-streamer core + option enabled "1" + option device "/dev/video0" + option resolution "640x480" + option fps "25" + option www "/www/webcam" + option port "80" diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/network b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer new file mode 120000 index 00000000..11b1e90d --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer @@ -0,0 +1 @@ +../init.d/mjpg-streamer \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/doc/README.md b/minikrebs/profiles/camkrebs_quickcam/doc/README.md new file mode 100644 index 00000000..5b787737 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/doc/README.md @@ -0,0 +1,2 @@ +# Documentation +Firmware for krebs with Logitech QuickCam Messenger attached. diff --git a/minikrebs/profiles/camkrebs_uvc/custom_make b/minikrebs/profiles/camkrebs_uvc/custom_make new file mode 100755 index 00000000..752a7bfe --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/custom_make @@ -0,0 +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-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/config/mjpg-streamer b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..298b06fe --- /dev/null +++ b/minikrebs/profiles