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') 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') 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') 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') 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/prepare | 12 +++++++----- minikrebs/profiles/camkrebs/custom_make | 3 --- .../profiles/camkrebs/customfiles/etc/config/mjpg-streamer | 7 ------- minikrebs/profiles/camkrebs/customfiles/etc/config/network | 9 --------- .../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 +++++++ .../camkrebs_quickcam/customfiles/etc/config/network | 9 +++++++++ .../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 +++ .../camkrebs_uvc/customfiles/etc/config/mjpg-streamer | 7 +++++++ .../profiles/camkrebs_uvc/customfiles/etc/config/network | 9 +++++++++ .../camkrebs_uvc/customfiles/etc/dropbear/authorized_keys | 1 + .../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 +++++ 21 files changed, 62 insertions(+), 31 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') diff --git a/minikrebs/prepare b/minikrebs/prepare index 320e4516..610c1299 100755 --- a/minikrebs/prepare +++ b/minikrebs/prepare @@ -7,15 +7,15 @@ if [ x"${1:-}" == x ];then echo "usage: $0 PROFILE" echo echo "Available Profiles:" - ls -1 profiles/ | grep -v '^init$' | while read profile; do + ls -1 profiles/ |grep -v '^README' | grep -v '^init$' | while read profile; do echo " $profile" done exit 1 fi PROFILE=$1 if [ ! -e builder/Makefile ]; then - wget -O- $IMAGEBUILDER_URL | tar xj -C builder OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 - mv OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 builder + wget -O- $IMAGEBUILDER_URL | tar xj OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 + mv -f OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 builder echo "Builder successfully downloaded" else echo "Builder already installed, skipping download" @@ -28,8 +28,10 @@ echo echo "copying profile:" find profiles/$PROFILE -mindepth 1 -maxdepth 1| while read file; do echo " $file -> builder/$(basename $file)" - #rm -rf builder/$file - cp -r --remove-destination $file builder/ + rm -rf builder/$(basename $file) + cp -r $file builder/ done + echo +echo $PROFILE > builder/current_profile echo 'now run `builder/init`' 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/camkrebs_uvc/customfiles/etc/config/mjpg-streamer @@ -0,0 +1,7 @@ +config mjpg-streamer core + option enabled "1" + option device "/dev/video0" + option resolution "1280x720" + option fps "25" + option www "/www/webcam" + option port "80" diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/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_uvc/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer new file mode 120000 index 00000000..11b1e90d --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/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_uvc/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local new file mode 100644 index 00000000..3e91b57c --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local @@ -0,0 +1 @@ +insmod uvcvideo diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/camkrebs_uvc/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::: -- cgit v1.2.3 From e5f3025a1aba220f6f2aa838ae317568fdec4e67 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 06:03:06 +0700 Subject: camkrebs_quickcam: derive from krebs --- .../camkrebs_quickcam/customfiles/etc/config/system | 11 +++++++++++ .../camkrebs_quickcam/customfiles/etc/config/tinc | 2 ++ .../camkrebs_quickcam/customfiles/etc/config/wireless | 19 +++++++++++++++++++ .../camkrebs_quickcam/customfiles/etc/rc.d/tinc | 1 + .../camkrebs_quickcam/customfiles/etc/rc.local | 3 +++ .../camkrebs_quickcam/customfiles/usr/bin/autoinfest | 4 ++++ .../camkrebs_quickcam/customfiles/usr/bin/genhostid | 2 ++ .../camkrebs_quickcam/customfiles/usr/bin/led | 3 +++ .../camkrebs_quickcam/customfiles/usr/bin/tinc-update | 4 ++++ 9 files changed, 49 insertions(+) create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless create mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc create mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local create mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/autoinfest create mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/genhostid create mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led create mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/tinc-update (limited to 'minikrebs') diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system new file mode 100644 index 00000000..5371b6bb --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system @@ -0,0 +1,11 @@ +config system + option hostname camkrebs + 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/camkrebs_quickcam/customfiles/etc/config/tinc b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc new file mode 100644 index 00000000..3a03196c --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc @@ -0,0 +1,2 @@ +config tinc-net retiolum + option enabled 1 diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless new file mode 100644 index 00000000..e08a42ed --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/etc/rc.d/tinc b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc new file mode 120000 index 00000000..f08fe11d --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc @@ -0,0 +1 @@ +../init.d/tinc \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local new file mode 100644 index 00000000..3526e76f --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/usr/bin/autoinfest b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/autoinfest new file mode 100755 index 00000000..a30c1a2b --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/usr/bin/genhostid b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/genhostid new file mode 100755 index 00000000..463e04b7 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/usr/bin/led b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led new file mode 100755 index 00000000..e3e998a8 --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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/camkrebs_quickcam/customfiles/usr/bin/tinc-update b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/tinc-update new file mode 100755 index 00000000..4ff46b8f --- /dev/null +++ b/minikrebs/profiles/camkrebs_quickcam/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 -- cgit v1.2.3 From f90ac125ccfd08fc1448fd78ad0ad373b2622077 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 06:47:51 +0700 Subject: camkrebs_messenger -> camkrebs_zc3xx --- minikrebs/profiles/camkrebs_quickcam/custom_make | 3 --- .../customfiles/etc/config/mjpg-streamer | 7 ------- .../camkrebs_quickcam/customfiles/etc/config/network | 9 --------- .../camkrebs_quickcam/customfiles/etc/config/system | 11 ----------- .../camkrebs_quickcam/customfiles/etc/config/tinc | 2 -- .../camkrebs_quickcam/customfiles/etc/config/wireless | 19 ------------------- .../customfiles/etc/dropbear/authorized_keys | 1 - .../customfiles/etc/rc.d/S91mjpg-streamer | 1 - .../camkrebs_quickcam/customfiles/etc/rc.d/tinc | 1 - .../camkrebs_quickcam/customfiles/etc/rc.local | 3 --- .../profiles/camkrebs_quickcam/customfiles/etc/shadow | 5 ----- .../camkrebs_quickcam/customfiles/usr/bin/autoinfest | 4 ---- .../camkrebs_quickcam/customfiles/usr/bin/genhostid | 2 -- .../camkrebs_quickcam/customfiles/usr/bin/led | 3 --- .../camkrebs_quickcam/customfiles/usr/bin/tinc-update | 4 ---- minikrebs/profiles/camkrebs_quickcam/doc/README.md | 2 -- minikrebs/profiles/camkrebs_zc3xx/custom_make | 3 +++ .../customfiles/etc/config/mjpg-streamer | 7 +++++++ .../camkrebs_zc3xx/customfiles/etc/config/network | 9 +++++++++ .../camkrebs_zc3xx/customfiles/etc/config/system | 11 +++++++++++ .../camkrebs_zc3xx/customfiles/etc/config/wireless | 19 +++++++++++++++++++ .../customfiles/etc/dropbear/authorized_keys | 1 + .../profiles/camkrebs_zc3xx/customfiles/etc/rc.local | 4 ++++ .../profiles/camkrebs_zc3xx/customfiles/etc/shadow | 5 +++++ .../camkrebs_zc3xx/customfiles/usr/bin/autoinfest | 4 ++++ .../camkrebs_zc3xx/customfiles/usr/bin/genhostid | 2 ++ .../profiles/camkrebs_zc3xx/customfiles/usr/bin/led | 3 +++ .../camkrebs_zc3xx/customfiles/usr/bin/tinc-update | 4 ++++ minikrebs/profiles/camkrebs_zc3xx/doc/README.md | 4 ++++ 29 files changed, 76 insertions(+), 77 deletions(-) delete mode 100755 minikrebs/profiles/camkrebs_quickcam/custom_make delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/network delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless delete mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys delete mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer delete mode 120000 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local delete mode 100644 minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow delete mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/autoinfest delete mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/genhostid delete mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led delete mode 100755 minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/tinc-update delete mode 100644 minikrebs/profiles/camkrebs_quickcam/doc/README.md create mode 100755 minikrebs/profiles/camkrebs_zc3xx/custom_make create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/system create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/wireless create mode 120000 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/dropbear/authorized_keys create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/shadow create mode 100755 minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/autoinfest create mode 100755 minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/genhostid create mode 100755 minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/led create mode 100755 minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/tinc-update create mode 100644 minikrebs/profiles/camkrebs_zc3xx/doc/README.md (limited to 'minikrebs') diff --git a/minikrebs/profiles/camkrebs_quickcam/custom_make b/minikrebs/profiles/camkrebs_quickcam/custom_make deleted file mode 100755 index a01dba54..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/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-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 deleted file mode 100644 index 7417837e..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/mjpg-streamer +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index c459c4e0..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/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_quickcam/customfiles/etc/config/system b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system deleted file mode 100644 index 5371b6bb..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/system +++ /dev/null @@ -1,11 +0,0 @@ -config system - option hostname camkrebs - 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/camkrebs_quickcam/customfiles/etc/config/tinc b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc deleted file mode 100644 index 3a03196c..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/tinc +++ /dev/null @@ -1,2 +0,0 @@ -config tinc-net retiolum - option enabled 1 diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless deleted file mode 100644 index e08a42ed..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/config/wireless +++ /dev/null @@ -1,19 +0,0 @@ - -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/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/dropbear/authorized_keys deleted file mode 120000 index 9c87fc52..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/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_quickcam/customfiles/etc/rc.d/S91mjpg-streamer b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/S91mjpg-streamer deleted file mode 120000 index 11b1e90d..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/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_quickcam/customfiles/etc/rc.d/tinc b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc deleted file mode 120000 index f08fe11d..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.d/tinc +++ /dev/null @@ -1 +0,0 @@ -../init.d/tinc \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local deleted file mode 100644 index 3526e76f..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/rc.local +++ /dev/null @@ -1,3 +0,0 @@ -[ ! -e /etc/hostid ] && /usr/bin/genhostid -[ ! -e /etc/tinc/retiolum ] && /usr/bin/autoinfest & -exit 0 diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow b/minikrebs/profiles/camkrebs_quickcam/customfiles/etc/shadow deleted file mode 100644 index 251abaf5..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/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/customfiles/usr/bin/autoinfest b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/autoinfest deleted file mode 100755 index a30c1a2b..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/autoinfest +++ /dev/null @@ -1,4 +0,0 @@ -#!/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/camkrebs_quickcam/customfiles/usr/bin/genhostid b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/genhostid deleted file mode 100755 index 463e04b7..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/genhostid +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -dd if=/dev/urandom bs=1 count=4> /etc/hostid diff --git a/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led deleted file mode 100755 index e3e998a8..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/led +++ /dev/null @@ -1,3 +0,0 @@ -#!/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/camkrebs_quickcam/customfiles/usr/bin/tinc-update b/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/tinc-update deleted file mode 100755 index 4ff46b8f..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/customfiles/usr/bin/tinc-update +++ /dev/null @@ -1,4 +0,0 @@ -#!/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/camkrebs_quickcam/doc/README.md b/minikrebs/profiles/camkrebs_quickcam/doc/README.md deleted file mode 100644 index 5b787737..00000000 --- a/minikrebs/profiles/camkrebs_quickcam/doc/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Documentation -Firmware for krebs with Logitech QuickCam Messenger attached. diff --git a/minikrebs/profiles/camkrebs_zc3xx/custom_make b/minikrebs/profiles/camkrebs_zc3xx/custom_make new file mode 100755 index 00000000..8f9faf10 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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-zc3xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/ diff --git a/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..7417837e --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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_zc3xx/customfiles/etc/config/network b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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_zc3xx/customfiles/etc/config/system b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/system new file mode 100644 index 00000000..5371b6bb --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/system @@ -0,0 +1,11 @@ +config system + option hostname camkrebs + 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/camkrebs_zc3xx/customfiles/etc/config/wireless b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/wireless new file mode 100644 index 00000000..e08a42ed --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/rc.local new file mode 100644 index 00000000..847a029f --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/customfiles/etc/shadow b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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_zc3xx/customfiles/usr/bin/autoinfest b/minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/autoinfest new file mode 100755 index 00000000..a30c1a2b --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/customfiles/usr/bin/genhostid b/minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/genhostid new file mode 100755 index 00000000..463e04b7 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/customfiles/usr/bin/led b/minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/led new file mode 100755 index 00000000..e3e998a8 --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/customfiles/usr/bin/tinc-update b/minikrebs/profiles/camkrebs_zc3xx/customfiles/usr/bin/tinc-update new file mode 100755 index 00000000..4ff46b8f --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/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/camkrebs_zc3xx/doc/README.md b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md new file mode 100644 index 00000000..3f93bfda --- /dev/null +++ b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md @@ -0,0 +1,4 @@ +# Documentation +Firmware for krebs with Logitech QuickCam Messenger attached. + +The profile is derived from krebs -- cgit v1.2.3 From 9a5edaac48e2461aa247204fbcea37d805bf38f0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 08:52:39 +0700 Subject: add upgrade script for rapid deployment --- .../camkrebs_zc3xx/customfiles/etc/config/network | 17 +++++++----- minikrebs/upgrade | 31 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 6 deletions(-) create mode 100755 minikrebs/upgrade (limited to 'minikrebs') diff --git a/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network index c459c4e0..04722166 100644 --- a/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network +++ b/minikrebs/profiles/camkrebs_zc3xx/customfiles/etc/config/network @@ -1,9 +1,14 @@ + config interface 'loopback' - option ifname 'lo' - option proto 'static' - option ipaddr '127.0.0.1' - option netmask '255.0.0.0' + 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' + option ifname 'eth0' + option proto 'dhcp' + +config interface 'wan' + option ifname 'wlan0' + option proto 'dhcp' diff --git a/minikrebs/upgrade b/minikrebs/upgrade new file mode 100755 index 00000000..e36ed5ad --- /dev/null +++ b/minikrebs/upgrade @@ -0,0 +1,31 @@ +#!/bin/sh +OWN_ADDR=${OWN_ADDR:-192.168.0.1} +PORT=8080 +IMAGE=${IMAGE:-openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin} +cd $(dirname $(readlink -f $0)) +if [ x"${1:-}" == x ];then + echo "usage: $0 ADDRESS" + echo + echo "ENVIRONMENT:" + echo " OWN_ADDR (currently $OWN_ADDR)" + echo " IMAGE (currently $IMAGE)" + echo " PORT (currently $PORT)" + + exit 1 +fi + +IP=$1 +cd builder/bin/ar71xx/ + +if [ -e "$IMAGE" ];then + python2 -m SimpleHTTPServer $PORT & + sleep 1 + SERVER_PID=$! + ssh root@$IP "wget -O /tmp/firmware.bin http://${OWN_ADDR}:${PORT}/${IMAGE} \ + && mtd write /tmp/firmware.bin firmware \ + && reboot" + kill $SERVER_PID +else + echo "cannot find ar71xx build, aborting" + exit 1 +fi -- cgit v1.2.3 From 6ea50f3c77350e715649aa45061beb1701ebaa95 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 7 Jan 2013 11:58:28 +0700 Subject: rickroller: initial commit --- minikrebs/profiles/rickroller/custom_make | 5 + .../rickroller/customfiles/etc/config/dhcp | 25 +++++ .../rickroller/customfiles/etc/config/firewall | 110 +++++++++++++++++++++ .../rickroller/customfiles/etc/config/network | 15 +++ .../rickroller/customfiles/etc/config/system | 11 +++ .../rickroller/customfiles/etc/config/uhttpd | 26 +++++ .../rickroller/customfiles/etc/config/wireless | 19 ++++ .../customfiles/etc/dropbear/authorized_keys | 1 + .../profiles/rickroller/customfiles/etc/shadow | 5 + .../profiles/rickroller/customfiles/www/1x1.gif | Bin 0 -> 35 bytes .../rickroller/customfiles/www/cgi-bin/rrhelper | 15 +++ .../rickroller/customfiles/www/flvplayer.swf | Bin 0 -> 29708 bytes .../profiles/rickroller/customfiles/www/index.html | 24 +++++ .../rickroller/customfiles/www/rickroll.flv | Bin 0 -> 1078840 bytes minikrebs/profiles/rickroller/doc/README.md | 8 ++ 15 files changed, 264 insertions(+) create mode 100755 minikrebs/profiles/rickroller/custom_make create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/dhcp create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/firewall create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/network create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/system create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/uhttpd create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/config/wireless create mode 120000 minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys create mode 100644 minikrebs/profiles/rickroller/customfiles/etc/shadow create mode 100644 minikrebs/profiles/rickroller/customfiles/www/1x1.gif create mode 100755 minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper create mode 100644 minikrebs/profiles/rickroller/customfiles/www/flvplayer.swf create mode 100644 minikrebs/profiles/rickroller/customfiles/www/index.html create mode 100644 minikrebs/profiles/rickroller/customfiles/www/rickroll.flv create mode 100644 minikrebs/profiles/rickroller/doc/README.md (limited to 'minikrebs') diff --git a/minikrebs/profiles/rickroller/custom_make b/minikrebs/profiles/rickroller/custom_make new file mode 100755 index 00000000..c22348b1 --- /dev/null +++ b/minikrebs/profiles/rickroller/custom_make @@ -0,0 +1,5 @@ +#!/bin/sh + +#HTTPD="mini-httpd" +HTTPD="uhttpd" +make image PROFILE=TLWR703 PACKAGES="$HTTPD dnsmasq wireless-tools -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/customfiles/etc/config/dhcp new file mode 100644 index 00000000..b058f08f --- /dev/null +++ b/minikrebs/profiles/rickroller/customfiles/etc/config/dhcp @@ -0,0 +1,25 @@ +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 diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/firewall b/minikrebs/profiles/rickroller/customfiles/etc/config/firewall new file mode 100644 index 00000000..6e95b5cd --- /dev/null +++ b/minikrebs/profiles/rickroller/customfiles/etc/config/firewall @@ -0,0 +1,110 @@ +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 + +# does not seem to work for some reason: +#config redirect +# option src lan +# option proto tcp +# option src_dport 80 +# option dest_port 80 + +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 diff --git a/minikrebs/profiles/rickroller/customfiles/etc/config/network b/minikrebs/profiles/rickroller/customfiles/etc/config/network new file mode 100644 index 00000000..7ac322a7 --- /dev/null +++ b/minikrebs/profiles/rickroller/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/customfiles/etc/config/system b/minikrebs/profiles/rickroller/customfiles/etc/config/system new file mode 100644 index 00000000..55aeb7aa --- /dev/null +++ b/minikrebs/profiles/rickroller/customfiles/etc/config/system @@ -0,0 +1,11 @@ +config system + option hostname rickroller + option timezone UTC + +config 'led' 'lan_led' + option 'name' 'LAN' + option 'sys