code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
# json portal wget http://coova.org/uam/ # javascript to drive it wget http://coova.org/js/chilli.js # fix js address sed -i 's/coova.org\/js\/chilli.js/\/portal\/chilli.js/g' index.html # move it to destination # mv chilli.js files/www/portal # mv index.html files/www/portal
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args="-j $interface" vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args="-j $interface" vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=30 start () { # batman #uci set batmand.general.gateway_class="100mbit" #uci set batmand.general.visualisation_srv="10.130.1.1" #uci commit mv /etc/config/batmand.afrimesh-gateway /etc/config/batmand # vis mv /etc/config/vis.afrimesh-gateway /etc/config/vis mv /etc/init...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # batman #uci set batmand.general.gateway_class="100mbit" #uci set batmand.general.visualisation_srv="10.130.1.1" #uci commit mv /etc/config/batmand.afrimesh-gateway /etc/config/batmand # vis mv /etc/config/vis.afrimesh-gateway /etc/config/vis mv /etc/init...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ $1 != "true" ] && [ $1 != "on" ] && [ $1 != "1" ] && [ $1 != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4" if [...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ $1 != "true" ] && [ $1 != "on" ] && [ $1 != "1" ] && [ $1 != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4" if [...
Shell
#!/bin/bash # update pbuilder with public keys to be able to use launchpad PPA's to resolve depends echo echo "Fetching public key for Afrimesh PPA" echo gpg --keyserver keyserver.ubuntu.com --recv 50CFBA3E gpg --export --armor 50CFBA3E | sudo apt-key add - echo "deb http://ppa.launchpad.net/afrimesh/ppa/ubuntu hard...
Shell
#! /bin/sh # post-installation script for afrimesh-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh ...
Shell
#! /bin/sh # post-installation script for afrimesh-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh ...
Shell
#!/bin/bash # update pbuilder with public keys to be able to use launchpad PPA's to resolve depends # pubkey for afrimesh PPA echo echo "Fetching public key for Afrimesh PPA" echo #whoami #echo #mkdir -p /home/$USER/.gnupg #mkdir -p /home/antoine/.gnupg gpg --keyserver keyserver.ubuntu.com --recv 382AF1D2 gpg --expor...
Shell
#!/bin/bash # update pbuilder with public keys to be able to use launchpad PPA's to resolve depends # pubkey for afrimesh PPA echo echo "Fetching public key for Afrimesh PPA" echo #whoami #echo #mkdir -p /home/$USER/.gnupg #mkdir -p /home/antoine/.gnupg gpg --keyserver keyserver.ubuntu.com --recv 382AF1D2 gpg --expor...
Shell
#!/bin/bash # update pbuilder with public keys to be able to use launchpad PPA's to resolve depends echo echo "Fetching public key for Afrimesh PPA" echo gpg --keyserver keyserver.ubuntu.com --recv 50CFBA3E gpg --export --armor 50CFBA3E | sudo apt-key add - echo "deb http://ppa.launchpad.net/afrimesh/ppa/ubuntu hard...
Shell
#!/bin/sh TRUNK=`dirname $0` echo "Cleaning: $TRUNK " find $TRUNK -name "*~" find $TRUNK -name .DS_Store find $TRUNK -name "._*" find $TRUNK -name "*~" | xargs rm -f find $TRUNK -name .DS_Store | xargs rm -f find $TRUNK -name "._*" | xargs rm -f cd $TRUNK ; make clean
Shell
#!/bin/sh # support for fancy charactersets! :) sed s/λ/lambda/g $1 | \ sed s/Ω/omega/g | \ sed s/→/\.arrow/g | \ /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell # /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell $1
Shell
#!/bin/sh # support for fancy charactersets! :) sed s/λ/lambda/g $1 | \ sed s/Ω/omega/g | \ sed s/→/\.arrow/g | \ /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell # /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell $1
Shell
#!/bin/sh TRUNK=`dirname $0` echo "Cleaning: $TRUNK " find $TRUNK -name "*~" find $TRUNK -name .DS_Store find $TRUNK -name "._*" find $TRUNK -name "*~" | xargs rm -f find $TRUNK -name .DS_Store | xargs rm -f find $TRUNK -name "._*" | xargs rm -f cd $TRUNK ; make clean
Shell
#!/bin/bash # config settings PMACCT=/home/afrimesh/pmacct-0.11.6/src/pmacctd CONFIGFILE=pmacctd.conf # nuke all pmacctd killall -9 pmacctd # start pmacct with specified config file $PMACCT -f $CONFIGFILE
Shell
#!/bin/bash # config settings PMACCT=/home/afrimesh/pmacct-0.11.6/src/pmacctd CONFIGFILE=pmacctd.conf # nuke all pmacctd killall -9 pmacctd # start pmacct with specified config file $PMACCT -f $CONFIGFILE
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
# json portal wget http://coova.org/uam/ # javascript to drive it wget http://coova.org/js/chilli.js # fix js address sed -i 's/coova.org\/js\/chilli.js/\/portal\/chilli.js/g' index.html # move it to destination # mv chilli.js files/www/portal # mv index.html files/www/portal
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config # local config factory_root=$(uci get afrimesh.settings.root) # configure router uci set batmand.general.routing_class=1 uci set batmand.general.visualisation_srv=$factory_root uci set system.@system[0].log_ip=$factory_root ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config # local config factory_root=$(uci get afrimesh.settings.root) # configure router uci set batmand.general.routing_class=1 uci set batmand.general.visualisation_srv=$factory_root uci set system.@system[0].log_ip=$factory_root ...
Shell
#!/bin/sh /etc/rc.common # Start MySQL tunnel START=85 NAME=tunnel-mysql LOG_D=/var/log RUN_D=/var/run PID=$RUN_D/$NAME.pid PID_WATCH=$RUN_D/$NAME-watch.pid start() { if [ -f $PID ] && [ -f /proc/$(cat $PID)/exe ]; then echo "Tunnel is already active...exiting" exit fi PID=$PID /usr/sbin/tunnel-mysql& echo ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config # local config factory_root=$(uci get afrimesh.settings.root) # configure router uci set system.@system[0].log_ip=$factory_root # commit changes uci commit # permissions - TODO something a bit less extreme :) chmod...
Shell
#!/bin/sh /etc/rc.common # Start MySQL tunnel START=85 NAME=tunnel-mysql LOG_D=/var/log RUN_D=/var/run PID=$RUN_D/$NAME.pid PID_WATCH=$RUN_D/$NAME-watch.pid start() { if [ -f $PID ] && [ -f /proc/$(cat $PID)/exe ]; then echo "Tunnel is already active...exiting" exit fi PID=$PID /usr/sbin/tunnel-mysql& echo ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config # local config factory_root=$(uci get afrimesh.settings.root) # configure router uci set system.@system[0].log_ip=$factory_root # commit changes uci commit # permissions - TODO something a bit less extreme :) chmod...
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args="-j $interface" vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args="-j $interface" vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=99 start () { ifconfig eth0:9 172.31.255.254 netmask 255.255.255.252 broadcast 172.31.255.255 } stop () { ifconfig eth0:9 down }
Shell
#!/bin/sh /etc/rc.common START=30 start () { # batman #uci set batmand.general.gateway_class="100mbit" #uci set batmand.general.visualisation_srv="10.130.1.1" #uci commit mv /etc/config/batmand.afrimesh-gateway /etc/config/batmand # vis mv /etc/config/vis.afrimesh-gateway /etc/config/vis mv /etc/init...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # batman #uci set batmand.general.gateway_class="100mbit" #uci set batmand.general.visualisation_srv="10.130.1.1" #uci commit mv /etc/config/batmand.afrimesh-gateway /etc/config/batmand # vis mv /etc/config/vis.afrimesh-gateway /etc/config/vis mv /etc/init...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ $1 != "true" ] && [ $1 != "on" ] && [ $1 != "1" ] && [ $1 != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4" if [...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ $1 != "true" ] && [ $1 != "on" ] && [ $1 != "1" ] && [ $1 != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4" if [...
Shell
#!/bin/sh /etc/rc.common START=94 start() { logger "Started provisioning daemon on $DATE" # configuration DATE=`date` device=$(uci get wireless.@wifi-iface[0].device) interface=$(uci get network.$device.ifname) mac=`ifconfig $interface | grep HWaddr | awk '{ print $5 }'` root=$(uci get af...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config factory_dns="8.8.8.8 8.8.4.4" factory_mode=ahdemo factory_ssid=potato factory_bssid="01:CA:FF:EE:BA:BE" factory_channel=1 factory_network=10.130.1.0 factory_netmask=255.255.255.0 # local config wifi0_device=wifi0 ...
Shell
#!/bin/sh /etc/rc.common START=94 start() { logger "Started provisioning daemon on $DATE" # configuration DATE=`date` device=$(uci get wireless.@wifi-iface[0].device) interface=$(uci get network.$device.ifname) mac=`ifconfig $interface | grep HWaddr | awk '{ print $5 }'` root=$(uci get af...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config factory_dns="8.8.8.8 8.8.4.4" factory_mode=ahdemo factory_ssid=potato factory_bssid="01:CA:FF:EE:BA:BE" factory_channel=1 factory_network=10.130.1.0 factory_netmask=255.255.255.0 # local config wifi0_device=wifi0 ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config factory_root=48.0.0.1 # local config afrimesh_root=$(uci get afrimesh.settings.root) # disable firewall /etc/init.d/firewall disable # configure router - TODO this is for UBNT loco M5 running backfire.svn - look up ifnames at ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # factory config factory_root=48.0.0.1 # local config afrimesh_root=$(uci get afrimesh.settings.root) # disable firewall /etc/init.d/firewall disable # configure router - TODO this is for UBNT loco M5 running backfire.svn - look up ifnames at ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # fix cron #/etc/init.d/cron stop #/etc/init.d/cron enable #/etc/init.d/cron start # firewall #mv /etc/config/firewall.afrimesh-base /etc/config/firewall #mv /etc/firewall.user.afrimesh-base /etc/init.d/firewall #chmod 0755 /etc/init.d/firewall # LuCI ...
Shell
#!/bin/sh /etc/rc.common START=30 start () { # fix cron #/etc/init.d/cron stop #/etc/init.d/cron enable #/etc/init.d/cron start # firewall #mv /etc/config/firewall.afrimesh-base /etc/config/firewall #mv /etc/firewall.user.afrimesh-base /etc/init.d/firewall #chmod 0755 /etc/init.d/firewall # LuCI ...
Shell
!/bin/sh #if [ -f config-local.sh ]; then # . ./config-local.sh #else # [ -f /etc/chilli/defaults ] && . /etc/chilli/defaults # [ -f /etc/chilli/config ] && . /etc/chilli/config #fi # read chilli configuration hs_uamlisten=`uci get chilli.options.uamlisten` hs_uamport=3990 #TODO reg_mode #TODO hs_openid...
Shell
#!/bin/sh /etc/rc.common START=90 NAME=chilli RUN_D=/var/run CMDSOCK=$RUN_D/$NAME.sock PIDFILE=$RUN_D/$NAME.pid append_switch() { local section="$1" local option="$2" local switch="$3" loca...
Shell
#!/bin/sh /etc/rc.common START=90 NAME=chilli RUN_D=/var/run CMDSOCK=$RUN_D/$NAME.sock PIDFILE=$RUN_D/$NAME.pid append_switch() { local section="$1" local option="$2" local switch="$3" loca...
Shell
#!/bin/bash echo echo "Adding Afrimesh Release PPA" echo # TODO - why does this not work?! #sudo apt-add-repository http://ppa.launchpad.net/afrimesh/ppa/ubuntu lucid main gpg --keyserver keyserver.ubuntu.com --recv 50CFBA3E gpg --export --armor 50CFBA3E | sudo apt-key add - echo "deb http://ppa.launchpad.net/afrime...
Shell
#! /bin/sh # post-installation script for afrimesh-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh ...
Shell
#! /bin/sh # post-installation script for afrimesh-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh ...
Shell
#!/bin/bash echo echo "Adding Afrimesh Testing PPA" echo # TODO - why does this not work?! #sudo apt-add-repository http://ppa.launchpad.net/antoine-7degrees/ppa/ubuntu lucid main gpg --keyserver keyserver.ubuntu.com --recv 382AF1D2 gpg --export --armor 382AF1D2 | sudo apt-key add - echo "deb http://ppa.launchpad.ne...
Shell
#!/bin/bash echo echo "Adding Afrimesh Testing PPA" echo # TODO - why does this not work?! #sudo apt-add-repository http://ppa.launchpad.net/antoine-7degrees/ppa/ubuntu lucid main gpg --keyserver keyserver.ubuntu.com --recv 382AF1D2 gpg --export --armor 382AF1D2 | sudo apt-key add - echo "deb http://ppa.launchpad.ne...
Shell
#!/bin/bash echo echo "Adding Afrimesh Release PPA" echo # TODO - why does this not work?! #sudo apt-add-repository http://ppa.launchpad.net/afrimesh/ppa/ubuntu lucid main gpg --keyserver keyserver.ubuntu.com --recv 50CFBA3E gpg --export --armor 50CFBA3E | sudo apt-key add - echo "deb http://ppa.launchpad.net/afrime...
Shell
#! /bin/sh # post-installation script for villagetelco-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh...
Shell
#! /bin/sh # post-installation script for villagetelco-dashboard # # see: dh_installdeb(1) set -e case "$1" in configure) # setup permissions so that uci can edit configs from the httpd process chown -R :www-data /etc/config chmod 0775 /etc/config chmod -R 0664 /etc/config/afrimesh...
Shell
#!/bin/sh TRUNK=`dirname $0` echo "Cleaning: $TRUNK " find $TRUNK -name "*~" find $TRUNK -name .DS_Store find $TRUNK -name "._*" find $TRUNK -name "*~" | xargs rm -f find $TRUNK -name .DS_Store | xargs rm -f find $TRUNK -name "._*" | xargs rm -f cd $TRUNK ; make clean
Shell
#!/bin/sh # support for fancy charactersets! :) sed s/λ/lambda/g $1 | \ sed s/Ω/omega/g | \ sed s/→/\.arrow/g | \ /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell # /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell $1
Shell
#!/bin/sh # support for fancy charactersets! :) sed s/λ/lambda/g $1 | \ sed s/Ω/omega/g | \ sed s/→/\.arrow/g | \ /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell # /Users/antoine/External/SeaMonkey.app/Contents/MacOS/xpcshell $1
Shell
#!/bin/sh TRUNK=`dirname $0` echo "Cleaning: $TRUNK " find $TRUNK -name "*~" find $TRUNK -name .DS_Store find $TRUNK -name "._*" find $TRUNK -name "*~" | xargs rm -f find $TRUNK -name .DS_Store | xargs rm -f find $TRUNK -name "._*" | xargs rm -f cd $TRUNK ; make clean
Shell
#!/usr/bin/env bash # config self=192.168.20.105 # TODO uci get mesh address gateway=192.168.20.1 villagebus="../villagebus" version='r133' # build message timestamp=`date +%s`000 uname=`uname` ping=`ping -c 1 $gateway | grep from | awk '{ print \$7 }' | cut -d = -f 2` path="/root/db/status/$self" # TODO - check retu...
Shell
#!/usr/bin/env bash # config self=192.168.20.105 # TODO uci get mesh address gateway=192.168.20.1 villagebus="../villagebus" version='r133' # build message timestamp=`date +%s`000 uname=`uname` ping=`ping -c 1 $gateway | grep from | awk '{ print \$7 }' | cut -d = -f 2` path="/root/db/status/$self" # TODO - check retu...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ "$1" != "true" ] && [ "$1" != "on" ] && [ "$1" != "1" ] && [ "$1" != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 DEST= DEFAULT=$DEST/etc/default/asterisk OPTIONS="" is_false() { [ "$1" != "true" ] && [ "$1" != "on" ] && [ "$1" != "1" ] && [ "$1" != "yes" ] } append_sip_parm() { local section="$1" local option="$2" local default="$3" local key="$4...
Shell
#!/bin/bash # config settings PMACCT=/home/afrimesh/pmacct-0.11.6/src/pmacctd CONFIGFILE=pmacctd.conf # nuke all pmacctd killall -9 pmacctd # start pmacct with specified config file $PMACCT -f $CONFIGFILE
Shell
#!/bin/bash # config settings PMACCT=/home/afrimesh/pmacct-0.11.6/src/pmacctd CONFIGFILE=pmacctd.conf # nuke all pmacctd killall -9 pmacctd # start pmacct with specified config file $PMACCT -f $CONFIGFILE
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2008 Alina Friedrichsen <x-alina@gmx.net> # Special thanks to bittorf wireless )) START=65 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0' OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:inte...
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 BIN=nfacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=95 BIN=pmacctd DEFAULT=/etc/default/$BIN RUN_D=/var/run PID_F=$RUN_D/$BIN.pid start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $RUN_D $BIN $OPTIONS } stop() { [ -f $PID_F ] && kill -INT $(cat $PID_F) }
Shell
# json portal wget http://coova.org/uam/ # javascript to drive it wget http://coova.org/js/chilli.js # fix js address sed -i 's/coova.org\/js\/chilli.js/\/portal\/chilli.js/g' index.html # move it to destination # mv chilli.js files/www/portal # mv index.html files/www/portal
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get vis.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi vis_args=$interface vis $vis_args >/dev/null 2>&1 } stop () { killall vis }
Shell
#!/bin/sh /etc/rc.common START=90 start () { interface=$(uci get batmand.general.interface) if [ "$interface" = "" ]; then echo $1 Error, you must specify at least a network interface exit fi hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci ...
Shell