code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html> <head> <title>Jasmine Test Runner - Platform Core</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"../../../../testreporter/deploy/testreporter/resources/r...
Shell
#!/bin/sh echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html> <head> <title>Jasmine Test Runner - Platform Core</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"../../../../testreporter/deploy/testreporter/resources/r...
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh rm -f configure aclocal autoconf touch AUTHORS NEWS README ChangeLog automake --add-missing
Shell
echo "*** Message correlation OOK" | tee validate.out /opt/install/wsgc_test/bin/wsgc_test -s 4096 -c 1023 -C 10 -t 0.0 -r 0.0 -N 4 -I 0 -p 1,3,5,7,9,11,13,15 -B 2 -z 4 -n -6 -d OOK -H 0.13,1.1 >> validate.out echo "*** Message correlation DBPSK" | tee -a validate.out /opt/install/wsgc_test/bin/wsgc_test -s 4096 -c 102...
Shell
#!/bin/bash # arg #1 : number of CPUs # arg #2 : number of runs # arg #3 : prefix tag i.e. _RES # arg #4 : suffix for result file i.e. wsgc_result${suffix} nb_cpus=$1 shift nb_runs=$1 shift tag=$1 shift suffix=$1 shift command="" whitespace="[[:space:]]" for i in "$@" do if [[ $i =~ $whitespace ]] then ...
Shell
#!/bin/sh for pi in $(ps -edf | grep ${1} | cut -c10-15); do kill -9 $pi; done
Shell
echo "STARTED" currentDir=`pwd` files=`find $currentDir -name "*.properties.xml"` for file in $files do if echo $file | grep -i "target" >/dev/null; then echo "target" else wti add $file wti push $file wti pull $file fi done echo "END"
Shell
#!/bin/bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this scr...
Shell
#!/bin/bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this scr...
Shell
# ************************************** # This batch file launches an Ant script to # download, install and execute the WindowTester Example # ************************************** ../shared/ant/bin/ant -f test.xml
Shell
#!/bin/bash # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/bash # run "./runTests.sh" for verbose output # for short output, run # ./runTests.sh | grep FAILED # ./runTests.sh | grep PASSED #master branch SERVER_CLASS="org.ws4d.coap.test.PlugtestServer" CLIENT_CLASS="org.ws4d.coap.test.PlugtestClient" CLASSPATH="bin/:../ws4d-jcoap/bin" LOG_DIR="log" REF_LOG_DIR="logref" ...
Shell
#!/bin/bash DIR_BIN=$(cd `dirname $0`; pwd) USER=$(whoami) cpplint_tmpfile="/tmp/.$USER.svn.cpplint.$$" ci_tmpfile="/tmp/.$USER.svn.ci.$$" function EXIT() { rm -f $ci_tmpfile rm -f $cpplint_tmpfile if [[ $# -ne 0 ]]; then echo $* fi exit } function cpplint() { tmpfile=$cpplint_tmpfile python tools/...
Shell
#!/bin/bash DIR_BIN=$(cd `dirname $0`; pwd) USER=$(whoami) cpplint_tmpfile="/tmp/.$USER.svn.cpplint.$$" ci_tmpfile="/tmp/.$USER.svn.ci.$$" function EXIT() { rm -f $ci_tmpfile rm -f $cpplint_tmpfile if [[ $# -ne 0 ]]; then echo $* fi exit } function cpplint() { tmpfile=$cpplint_tmpfile python tools/...
Shell
#!/bin/bash # конвертируем спектры звезд ( cd db/pickles/dat for f in *.dat ; do # f="ukwf5v.dat" echo $f r=`echo $f | sed "s/\.[^\.]*$/\.enc/"` (cd ../../../ && cat "db/pickles/dat/$f" | awk '{print substr($_, 1, 7), " ", substr($_, 8, 10)}' | ./encode "db/pickles/$r") done ) # ( ...
Shell
ghc -O5 --make \ -o main HSimMain.hs rm `find . -name "*.hi"` rm `find . -name "*.o"`
Shell
rm `find . -name "*~"`
Shell
# -static -optl-static -optl-pthread ghc -O2 --make \ -o Main Main.hs -prof -auto-all -rtsopts -static -optl-static -optl-pthread # -o Main Main.hs -rtsopts -static -optl-static -optl-pthread ghc -O2 -DDEBUG --make \ -o ConfCheck ConfCheck.hs -rtsopts -static -optl-static -optl-pthread # -o Con...
Shell
rm `find . -name "*~"`
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi if [ $(uname -s) == "Darwin" ] then open=open else open=xdg-open fi $open http://localhost:$port/templat...
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/bin/bash # development trick: rem,ove logs before starting. rm target/logs/webserver.log # start the application. java -classpath target/webserver.jar:target/dependency/log4j-1.2.16.jar \ com.vvs.Main -c #$1
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed unde...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked immediately after a Subversion txn is # created and populated with initial revprops in the process of doing a # commit. Subversion runs this hook by invoking a program (script, # executable, binary, etc.) named 'start-commit' (for which this fi...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked immediately after a Subversion txn is # created and populated with initial revprops in the process of doing a # commit. Subversion runs this hook by invoking a program (script, # executable, binary, etc.) named 'start-commit' (for which this fi...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/bash sqlite db/database.db .dump > db/database.sql mv db/database.db db/database.db.old sqlite3 db/database.db < db/database.sql
Shell
#!/bin/bash sqlite db/database.db .dump > db/database.sql mv db/database.db db/database.db.old sqlite3 db/database.db < db/database.sql
Shell
#!/bin/sh set -e fromrepo= if [ "$1" = -r ]; then shift; fromrepo=1; fi top=$(pwd) jar=$1 bases=$2 dirs=$3 text=$4 bin=$5 shift 5; files="$@" HG=${HG:-hg} stage="$top/${jar%.*}" mkdir -p "$stage" sed=$(which sed) if [ "xoo" = x$(echo foo | sed -E 's/f(o)/\1/' 2>/dev/null) ] then sed() { $sed -E "$@"; } else sed() {...
Shell
for i in *.tm; do ln -s `pwd`/$i /usr/lib/tcl8/8.5/; done
Shell
#! /bin/sh # # handle the tclhttpd web server # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/wub/wikit/Site.tcl NAME=wub DESC="Wub Web Server" TCLSH=/usr/bin/tclsh STARTER="daemon" test -x $DAEMON || exit 0 # Include Wub defaults if available if [ -f /etc/default/wub ] ; then ...
Shell
#! /bin/sh # # Start/Stop Wub server # set -x PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON_OPTS="" DAEMON_VERBOSE=1 DESC="Wub Web Server" TCLSH=/usr/bin/tclsh STARTER="daemon" HOME=/var/www/wub/Wub/ DAEMON=$HOME/Site.tcl LOGDIR=/var/log/wub/ USER=www-data # load defaults by service NAME=`se...
Shell
#!/bin/sh rm -Rf wubwikit.vfs # Create directory structure for starkit vfs mkdir -p wubwikit.vfs/lib cd wubwikit.vfs/lib # Get WUB svn checkout http://wub.googlecode.com/svn/trunk wub find . -name ".svn" | xargs rm -Rf # Get wikit svn checkout http://wikitcl.googlecode.com/svn/trunk wikitcl find . -name ".svn" | xa...
Shell
#!/bin/sh rm -Rf wubwikit.vfs # Create directory structure for starkit vfs mkdir -p wubwikit.vfs/lib cd wubwikit.vfs/lib # Get WUB svn checkout http://wub.googlecode.com/svn/trunk wub find . -name ".svn" | xargs rm -Rf # Get wikit svn checkout http://wikitcl.googlecode.com/svn/trunk wikitcl find . -name ".svn" | xa...
Shell
#!/bin/bash rosrun wu_dpslam dpslam.py laser:=scan odometry:=odom
Shell
#!/bin/bash rosrun wu_dpslam dpslam.py laser:=scan odometry:=odom
Shell
#!/bin/bash find -name *.pyc -exec rm {} \;
Shell
#!/bin/bash find -name *.pyc -exec rm {} \;
Shell
# -*-mode:sh-*- # Qt Core handling HEADERS += \ core/qalgorithms.h \ core/qatomic.h \ core/qatomic_arch.h \ core/qatomic_windows.h \ core/qbasicatomic.h \ core/qbitarray.h \ core/qbytearray.h \ core/qbytearraymatcher.h\ core/qconfig.h \ ...
Shell
# -*-mode:sh-*- # Qt Core handling HEADERS += \ core/qalgorithms.h \ core/qatomic.h \ core/qatomic_arch.h \ core/qatomic_windows.h \ core/qbasicatomic.h \ core/qbitarray.h \ core/qbytearray.h \ core/qbytearraymatcher.h\ core/qconfig.h \ ...
Shell
# -*-mode:sh-*- # Qt image handling # Qt kernel module HEADERS += \ image/qbitmap.h \ image/qimage.h \ image/qimage_p.h \ image/qnativeimage_p.h \ image/qpixmap.h \ image/qpixmap_raster_p.h \ image/qpixmapcache.h \ image/qpixmapdata_p.h ...
Shell
# -*-mode:sh-*- # Qt image handling # Qt kernel module HEADERS += \ image/qbitmap.h \ image/qimage.h \ image/qimage_p.h \ image/qnativeimage_p.h \ image/qpixmap.h \ image/qpixmap_raster_p.h \ image/qpixmapcache.h \ image/qpixmapdata_p.h ...
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi if [ $(uname -s) == "Darwin" ] then open=open else open=xdg-open fi $open http://localhost:$port/templat...
Shell
ssh -C -N -L 37010:localhost:37010 mod.math.washington.edu
Shell
#!/bin/sh # # Detects OS we're compiling on and outputs a file specified by the first # argument, which in turn gets read while processing Makefile. # # The output will set the following variables: # CC C Compiler path # CXX C++ Compiler path # PLATFORM_LDFLAGS ...
Shell
#!/bin/sh append DRIVERS "mac80211" mac80211_hostapd_setup_base() { local phy="$1" local ifname="$2" cfgfile="/var/run/hostapd-$phy.conf" macfile="/var/run/hostapd-$phy.maclist" [ -e "$macfile" ] && rm -f "$macfile" config_get device "$vif" device config_get country "$device" country config_get ...
Shell
#!/bin/sh append DRIVERS "mac80211" mac80211_hostapd_setup_base() { local phy="$1" local ifname="$2" cfgfile="/var/run/hostapd-$phy.conf" macfile="/var/run/hostapd-$phy.maclist" [ -e "$macfile" ] && rm -f "$macfile" config_get device "$vif" device config_get country "$device" country config_get ...
Shell
#!/bin/sh /etc/rc.common # # identification of the device # START=90 start() { . /lib/config/uci.sh . /usr/lib/webif/functions.sh # initialize default webif theme if [ ! -e /etc/config/wireless ]; then wifi detect > /etc/config/wireless uci_set "wireless" "radio0" "disabled" "0" uci_set "wireless" "radio1"...
Shell
#!/bin/sh /etc/rc.common # # identification of the device # START=90 start() { . /lib/config/uci.sh . /usr/lib/webif/functions.sh # initialize default webif theme if [ ! -e /etc/config/wireless ]; then wifi detect > /etc/config/wireless uci_set "wireless" "radio0" "disabled" "0" uci_set "wireless" "radio1"...
Shell
#!/bin/sh append DRIVERS "atheros" scan_atheros() { local device="$1" local wds local adhoc ahdemo sta ap monitor config_get vifs "$device" vifs for vif in $vifs; do config_get ifname "$vif" ifname config_set "$vif" ifname "${ifname:-ath}" config_get mode "$vif" mode case "$mode" in ...
Shell
#!/bin/sh append DRIVERS "atheros" scan_atheros() { local device="$1" local wds local adhoc ahdemo sta ap monitor config_get vifs "$device" vifs for vif in $vifs; do config_get ifname "$vif" ifname config_set "$vif" ifname "${ifname:-ath}" config_get mode "$vif" mode case "$mode" in ...
Shell
#!/bin/sh : ${PATTERN='\(ath_.*\|wlan_.*\|wlan\)$'} : ${MAX_TRIES=10} test "$(id -u)" = 0 || { echo "ERROR: You must be root to run this script" >&2 exit 1 } test -r /proc/modules || { echo "ERROR: Cannot read /proc/modules" >&2 exit 1 } tries="$MAX_TRIES" while test "$tries" != "0"; do skipped=0 IFS=' ' for...
Shell
#!/bin/sh if [ -z "${1}" ] ; then echo "Purpose:" echo "Locate all madwifi-related kernel modules for a given kernel" echo "(including all its subdirectories)." echo echo "Usage:" echo "$0 [-l] [-r] <kernelrelease> [destdir]" echo echo "<kernelrelease>: the kernel release that madwifi has been compiled for" e...
Shell
#!/bin/sh # Based on Lindent script from Linux with extra types. # GNU indent doesn't seen to be able to identify types from their # position in the code. indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs \ -T s8 -T s16 -T s32 -T s64 \ -T __s8 -T __s16 -T __s32 -T __s64 \ -T u8 -T u16 -T u32 -T u64 \ -T __u8 -T __u16 ...
Shell
#!/bin/sh if [ -z "${1}" ] ; then echo "Purpose:" echo "Locate all madwifi-related kernel modules for a given kernel" echo "(including all its subdirectories)." echo echo "Usage:" echo "$0 [-l] [-r] <kernelrelease> [destdir]" echo echo "<kernelrelease>: the kernel release that madwifi has been compiled for" e...
Shell
#!/bin/bash # # Purpose: automate the process of tagging a release and packing a tarball # for it. # check_dir_prereq: # ensures that a given directory name exist and is writeable # note: $1 is expected to be set to the name of the variable that contains # the name of the directory that is to be tested (indirect...
Shell
#!/bin/sh : ${PATTERN='\(ath_.*\|wlan_.*\|wlan\)$'} : ${MAX_TRIES=10} test "$(id -u)" = 0 || { echo "ERROR: You must be root to run this script" >&2 exit 1 } test -r /proc/modules || { echo "ERROR: Cannot read /proc/modules" >&2 exit 1 } tries="$MAX_TRIES" while test "$tries" != "0"; do skipped=0 IFS=' ' for...
Shell
#!/bin/sh # Based on Lindent script from Linux with extra types. # GNU indent doesn't seen to be able to identify types from their # position in the code. indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs \ -T s8 -T s16 -T s32 -T s64 \ -T __s8 -T __s16 -T __s32 -T __s64 \ -T u8 -T u16 -T u32 -T u64 \ -T __u8 -T __u16 ...
Shell
#!/bin/bash # # Purpose: automate the process of tagging a release and packing a tarball # for it. # check_dir_prereq: # ensures that a given directory name exist and is writeable # note: $1 is expected to be set to the name of the variable that contains # the name of the directory that is to be tested (indirect...
Shell
#! /bin/sh # # Shell script to integrate madwifi sources into a Linux # source tree so it can be built statically. Typically this # is done to simplify debugging with tools like kgdb. # set -e die() { echo "FATAL ERROR: $1" >&2 exit 1 } SRC=.. KERNEL_VERSION=$(uname -r) if test -n "$1"; then KERNEL_PATH="$1" el...
Shell
#! /bin/sh # # Shell script to integrate madwifi sources into a Linux # source tree so it can be built statically. Typically this # is done to simplify debugging with tools like kgdb. # set -e die() { echo "FATAL ERROR: $1" >&2 exit 1 } SRC=.. KERNEL_VERSION=$(uname -r) if test -n "$1"; then KERNEL_PATH="$1" el...
Shell
#!/bin/sh append DRIVERS "atheros" scan_atheros() { local device="$1" local wds local adhoc ahdemo sta ap monitor config_get vifs "$device" vifs for vif in $vifs; do config_get ifname "$vif" ifname config_set "$vif" ifname "${ifname:-ath}" config_get mode "$vif" mode case "$mode" in ...
Shell
#!/bin/sh append DRIVERS "atheros" scan_atheros() { local device="$1" local wds local adhoc ahdemo sta ap monitor config_get vifs "$device" vifs for vif in $vifs; do config_get ifname "$vif" ifname config_set "$vif" ifname "${ifname:-ath}" config_get mode "$vif" mode case "$mode" in ...
Shell
#!/bin/sh [ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1 . /etc/functions.sh include /lib/network RESOLV_CONF="/tmp/resolv.conf.auto" change_state () { [ -n "$ifc" ] || return uci_revert_state "$1" "$2" "$3" "$4" uci_set_state "$1" "$2" "$3" "$4" } set_classless_routes() { local max=128 local ty...
Shell
#!/bin/sh [ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1 . /etc/functions.sh include /lib/network RESOLV_CONF="/tmp/resolv.conf.auto" change_state () { [ -n "$ifc" ] || return uci_revert_state "$1" "$2" "$3" "$4" uci_set_state "$1" "$2" "$3" "$4" } set_classless_routes() { local max=128 local ty...
Shell