Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • remove-package-disable-11s
  • foo
  • add-lingen-to-hood-grafschaft-bentheim
  • CI-rsync-debug
  • reset-hoodselector-when-stuck
  • fix-missing-v6-addresses
  • 201712
  • fix-#123
  • 121-ci-prepare-ci-env-to-genarate-2-firmwares-automaticaly
  • bugfix-molwm
  • 201711
  • added-sandbox-hood
  • vpn-reconf-renewing
  • lorenz-testet-hoodselector-fix-scan
  • lorenz-testet
  • 201708
  • revert-8bbdf7c5
  • 201706
  • johannes/hoodselector-stauts-page
  • 201705
  • 201704
  • 201702
  • 201701
  • 1.2
  • 1.1.2
  • 1.1
  • 0.3.999b
  • 0.3.999c
  • 0.3.999d
  • 0.5.5.1
  • 0.5.5.2
  • 0.5.5.3
  • 0.5.5.4
  • 0.5.6.1
  • 20170125
  • 20170222
  • 20170305_testing
  • 20170306_testing
  • 20170307_testing
  • 20170308_testing
  • 20170311_testing
  • 20170409
  • 20170410
  • 20170530
  • 20170629
  • 20170822
  • 20171126
  • 20171211
  • 20171216
  • 20171220
  • 20180225
  • 20180318
  • 20180403
  • 20180413
  • 20180709
  • 20190808
  • v0.3.999
  • v0.6.1
  • v0.6.2
  • v0.8
  • v0.9
  • v1.0
  • v1.1
  • v1.1-RC0
  • v1.1-RC1
  • v1.1-RC2
  • v1.1-RC3
  • v1.1.1
  • v1.2
  • v1.2.1
  • v1.2.2
72 results

Target

Select target project
  • Firmware / packages
  • picard / packages
  • Johannes Rudolph / packages
  • Clemens John / packages
4 results
Select Git revision
  • citest
  • getbssid
  • master
  • feature-hoodselector
  • feature-hoodsupdater
  • hoodselector-proposal
  • v0.6.3
  • v0.7
  • banner
  • configurator_conf_fix
  • configurator
  • libwlocate
  • 0.6
  • 0.5.6
  • 0.5.5
  • wget
  • 0.5.3
  • nodewatcher
  • 0.3.999b
  • 0.3.999c
  • 0.3.999d
  • 0.5.5.1
  • 0.5.5.2
  • 0.5.5.3
  • 0.5.5.4
  • 0.5.6.1
  • v0.3.999
  • v0.6.1
  • v0.6.2
29 results
Show changes
78 files
+ 183
4524
Compare changes
  • Side-by-side
  • Inline

Files

.gitignore

0 → 100644
+12 −0
Original line number Diff line number Diff line
# swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
+0 −1
Original line number Diff line number Diff line
return tonumber(fs.readfile('/tmp/luftdruck'))
+0 −1
Original line number Diff line number Diff line
return tonumber(fs.readfile('/tmp/temperatur'))

ath9k-watchdog/Makefile

deleted100755 → 0
+0 −47
Original line number Diff line number Diff line
#
# Copyright (C) 2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=ath9k-watchdog
PKG_VERSION:=1
PKG_RELEASE:=1


include $(INCLUDE_DIR)/package.mk


define Package/ath9k-watchdog
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Watchdog for ath9k-outages
endef

define Package/ath9k-watchdog/description
 If pattern "ResetWLAN" is seen in the logs, wifi reset is executed
endef


define Package/ath9k-watchdog/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) files/ath9k-watchdog $(1)/usr/sbin/
	$(INSTALL_BIN) files/ath9k-watchdog-pm $(1)/usr/sbin/
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_DIR) $(1)/etc/init.d/
	$(INSTALL_BIN) files/ath9k-watchdog.init $(1)/etc/init.d/ath9k-watchdog
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
endef

define Build/Compile
endef
$(eval $(call BuildPackage,ath9k-watchdog))
+0 −31
Original line number Diff line number Diff line
#!/bin/sh
mkdir -p /usr/lib/ath9k-watchdog

logread -f | while read line
do
	case "$line" in
	*"Could not stop RX"*) 
        hostname=$(cat /proc/sys/kernel/hostname)

        if [ "$hostname" == "OpenWrt" ]; then
            hostname=""
        fi

        if [ "$hostname" == "" ]; then
            hostname=$(awk '{ if (mac) next; mac=toupper($1); gsub(":", "", mac); print mac }' /sys/class/net/br-mesh/address /sys/class/net/eth0/address /sys/class/net/ath0/address 2>/dev/null)
        fi

        # Perform post-mortem dump
        tstmp=$(/bin/date +%s)
        echo -n "data[hostname]=${hostname}&data[tstmp]=${tstmp}" > /tmp/$tstmp
        
        # Move into upload directory
        mv  /tmp/$tstmp /usr/lib/ath9k-watchdog

        #Bye 
        /sbin/reboot
		;;
	*)
		;;
	esac
done
+0 −25
Original line number Diff line number Diff line
#!/bin/sh
# Save log
mkdir -p /usr/lib/ath9k-watchdog
WGETC=$(which wget)


# CD to avoid annoying prefixes
cd /usr/lib/ath9k-watchdog

#Poll directory every 60 secs
while [ 1 = 1 ]
do
	if [ "$(ls .)" != "" ]
	then
		UPLOAD_URL="http://[$(uci get configurator.@api[0].ipv6_address)%$(uci get configurator.@api[0].ipv6_interface)]/api/rest/event/"
		for f in $(ls .); do 
			$WGETC -q $UPLOAD_URL"?api_key=$(uci get configurator.@api[0].api_key)&object=router&object_id="$(uci get configurator.@crawl[0].router_id)"&action=watchdog_ath9k_bug&"$(cat $f) -O - && rm $f
		done
		# If there are more than 15 files, assume that files cannot be uploaded
		# Delete oldest files in order to avoid jffs-overflow
		ls -t | sed -e '1,15d' | xargs rm 2> /dev/null
	fi
	
	sleep 60
done
+0 −28
Original line number Diff line number Diff line
#!/bin/sh /etc/rc.common

START=95
APP=ath9k-watchdog
POSTM=ath9k-watchdog-pm
PID_FILE=/var/run/$APP.pid
POSTM_PID_FILE=/var/run/$POSTM.pid

start() {
		if [ -f $PID_FILE ]; then
			echo "Ath9k-watchdog: Already Running"
		else 
	        start-stop-daemon -S -x $APP -p $PID_FILE -m -b
		fi

		if [ -f $POSTM_PID_FILE ]; then
			echo "ath9k-watchdog-pm: Already Running"
		else 
	        start-stop-daemon -S -x $POSTM -p $POSTM_PID_FILE -m -b
		fi
}

stop() {
        start-stop-daemon -K -n $APP -p $PID_FILE -s TERM
        start-stop-daemon -K -n $POSTM -p $POSTM_PID_FILE -s TERM
        rm -rf $PID_FILE
        rm -rf $POSTM_PID_FILE
}
 No newline at end of file

autoupdater-mod/Makefile

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
include $(TOPDIR)/rules.mk

PKG_NAME:=ffnw-autoupdater-mod
PKG_VERSION:=1
PKG_RELEASE:=1

PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/ffnw-autoupdater-mod
  SECTION:=Daemon
  CATEGORY:=Freifunk Nordwest
  TITLE:=custom autoupdater special for batman upgrade
endef

define Package/ffnw-autoupdater-mod/description
  custom autoupdater special for batman upgrade
endef

define Build/Prepare
  mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/ffnw-autoupdater-mod/install
	$(INSTALL_DIR) $(1)/lib/gluon/cron/
	$(INSTALL_DATA) files/lib/gluon/cron/autoupdater-mod $(1)/lib/gluon/cron/
	$(INSTALL_DIR) $(1)/lib/ffnw/autoupdater-mod/
	$(INSTALL_BIN) files/lib/ffnw/autoupdater-mod/* $(1)/lib/ffnw/autoupdater-mod/
endef

$(eval $(call BuildPackage,ffnw-autoupdater-mod))