code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh basedir=`pwd` datadir= # The following variables are only set for letting mysql.server find things. # Set some defaults pid_file= server_pid_file= use_mysqld_safe=1 user=mysql if test -z "$basedir" then basedir=/usr/local/mysql bindir=./bin if test -z "$datadir" then datadir=/usr/local/mysql/dat...
Shell
#!/bin/sh INIT_SCRIPT="`pwd`/__mysql.init" DB_SERVERS="main entry django" for i in ${DB_SERVERS} do [ $1 == "start" ] && [ -S $i/data/mysql.sock ] || (cd $i; ${INIT_SCRIPT} $1) [ $1 == "stop" ] && [ -S $i/data/mysql.sock ] && (cd $i; ${INIT_SCRIPT} $1) done exit 0
Shell
#!/bin/bash # "Copyright (c) 2005 Stanford University. All rights reserved. # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose, without fee, and without written # agreement is hereby granted, provided that the above copyright # notice, the following two paragraphs...
Shell
#!/bin/bash curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz tar -zxvf tesseract-ocr-3.02.02.tar.gz tar -zxvf leptonica-1.69.tar.gz rm -f tesseract-ocr-3.02.02.tar.gz rm -f leptonica-1.69.tar.gz mv tesseract-ocr jni/com_g...
Shell
#!/bin/bash curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz tar -zxvf tesseract-ocr-3.02.eng.tar.gz rm -f tesseract-ocr-3.02.eng.tar.gz mkdir data mv tesseract-ocr data/tesseract adb push data/ /sdcard/ adb shell sync
Shell
#!/bin/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT=$(dirname $(readlink -f $0))/.. GAE=$ROOT/../google_appengine FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS=$GAE:$GAE/lib/django_1_2 PYTHONPATH=$IMPORTS:$PYTHONPA...
Shell
#!/bin/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT=$(dirname $(readlink -f $0))/.. GAE=$ROOT/../google_appengine FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS=$GAE:$GAE/lib/django_1_2 PYTHONPATH=$IMPORTS:$PYTHONPA...
Shell
#!/system/bin/sh DIR=/data/data/org.proxydroid type=$2 host=$3 port=$4 auth=$5 user=$6 pass=$7 PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } " >$DIR/redsocks.conf case $type in http) case $auth in...
Shell
#!/usr/bin/bash # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 appli...
Shell
#!/bin/bash echo "Generating ORMlite resources" java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt echo "done."
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/registrar-5min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 300 \ DS:nIncReqs:COUNTER:600:U:U \ DS:nResOK:COUNTER:600:U:U \ DS:nR...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/registrar-1min.rrd # Output file with registrar stats out_registrar=$base_dir/extra/stats/png/registrar.png # Output file with registrar Java VM stats out_vm=$base_dir/extra/stat...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/location-service-1min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nBindings:vm_freememory:vm_maxmemory:vm_totalmemory \ N:`$base_dir/bin/cmdclient -rknc rm...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/registrar-1min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 60 \ DS:nIncReqs:COUNTER:120:U:U \ DS:nResOK:COUNTER:120:U:U \ DS:nRe...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/registrar-5min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nIncReqs:nResOK:nReqRej:nReqErrors:nAuthFails:nCancels:nCCancels:nQueries:nUpdates:nNotFound:vm_...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/location-service-1min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 60 \ DS:nBindings:GAUGE:120:U:U \ DS:vm_freememory:GAUGE:120:U:U ...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/proxy-1min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 60 \ DS:nReqProc:COUNTER:120:U:U \ DS:nResProc:COUNTER:120:U:U \ DS:nRe...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/location-service-5min.rrd # Output file with location service stats out_location_service=$base_dir/extra/stats/png/location-service.png # Output file with location service Java V...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/proxy-5min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nReqProc:nResProc:nReqNProc:nResNProc:nST:nCT:vm_freememory:vm_maxmemory:vm_totalmemory \ N:`$base_d...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/registrar-1min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nIncReqs:nResOK:nReqRej:nReqErrors:nAuthFails:nCancels:nCCancels:nQueries:nUpdates:nNotFound:vm_...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/location-service-5min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nBindings:vm_freememory:vm_maxmemory:vm_totalmemory \ N:`$base_dir/bin/cmdclient -rknc rm...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/location-service-5min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 300 \ DS:nBindings:GAUGE:600:U:U \ DS:vm_freememory:GAUGE:600:U:U ...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/proxy-1min.rrd #echo "Output filename: $out" rrdtool update $out \ -t nReqProc:nResProc:nReqNProc:nResNProc:nST:nCT:vm_freememory:vm_maxmemory:vm_totalmemory \ N:`$base_d...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/proxy-5min.rrd # Output file with proxy request processings stats out_proxy_reqs=$base_dir/extra/stats/png/proxy-reqs.png # Output file with proxy transactions stats out_proxy_tr...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/location-service-1min.rrd # Output file with location service stats out_location_service=$base_dir/extra/stats/png/location-service.png # Output file with location service Java V...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/proxy-1min.rrd # Output file with proxy request processings stats out_proxy_reqs=$base_dir/extra/stats/png/proxy-reqs.png # Output file with proxy transactions stats out_proxy_tr...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Input file in=$base_dir/extra/stats/rrd/registrar-5min.rrd # Output file with registrar stats out_registrar=$base_dir/extra/stats/png/registrar.png # Output file with registrar Java VM stats out_vm=$base_dir/extra/stat...
Shell
#!/bin/sh # Installation directory base_dir=`realpath "$0"/../../../../` #echo base_dir=$base_dir # Output .rrd file out=$base_dir/extra/stats/rrd/proxy-5min.rrd #echo "Output filename: $out" rrdtool create $out \ --step 300 \ DS:nReqProc:COUNTER:600:U:U \ DS:nResProc:COUNTER:600:U:U \ DS:nR...
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/zsh setopt extendedglob xpi="../scriptify-$1@dactyl.googlecode.com.xpi" 7z a -l $xpi \ modules/*/(*.(js|xul|jsm|css|png|xml|dtd)~bootstrap.js(|m)) \ (content|skin)/*.(js|xul|jsm|css|png|xml|dtd) \ locale/**/*.(xhtml|dtd|properties) \ scriptified/bootstrap.js \ bootstrap.jsm bootstrap.js \ LICENSE install....
Shell
#!/bin/zsh setopt extendedglob xpi="../scriptify-$1@dactyl.googlecode.com.xpi" 7z a -l $xpi \ modules/*/(*.(js|xul|jsm|css|png|xml|dtd)~bootstrap.js(|m)) \ (content|skin)/*.(js|xul|jsm|css|png|xml|dtd) \ locale/**/*.(xhtml|dtd|properties) \ scriptified/bootstrap.js \ bootstrap.jsm bootstrap.js \ LICENSE install....
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents Media Server Bootstrap Script ## ## ...
Shell
#!/bin/sh ### ====================================================================== ### ## ## ## Mobicents Media Server Bootstrap Script ## ## ...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/ksh # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wi...
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
cd bin ./test_garbage_collection ./test_var_arg ./test_property ./test_inheritance ./test_table
Shell
if [ -d ./build_unix ]; then cd build_unix rm -rf * cd .. fi if [ -d ./build_unix_dbg ]; then cd build_unix_dbg rm -rf * cd .. fi
Shell
if [ ! -d ./build_unix_dbg ]; then mkdir build_unix_dbg fi cd build_unix_dbg cmake -D "CMAKE_BUILD_TYPE=Debug" .. #make 2>&1 | less make
Shell
if [ ! -d ./build_unix ]; then mkdir build_unix fi cd build_unix cmake .. #make 2>&1 | less make #run tests cd ..
Shell
# first generate luna_baselib.* and luna_mainlib.* lua ../luna_gen.lua luna_baselib.lua # then generate luna_pdfwin.* # note that all the classes defined in luna_pdfwin.lua is dependent on luna_baselib and luna_mainlib # to do this, # use in luna_baselib.lua # writeDefinitionDBtoFile(source_path..'/generated/luna_b...
Shell
#!/bin/sh CUR_DIR=`pwd` ANDROID_SRC=/macdroid/a cp keystore.c $ANDROID_SRC/frameworks/base/cmds/keystore cd $ANDROID_SRC make -j8 cd $CUR_DIR cp $ANDROID_SRC/out/target/product/generic/system/bin/keystore .
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh mvn grails:exec -Dcommand=app-engine -Dargs=package && $APPENGINE_HOME/bin/appcfg.sh update target/war
Shell
#!/bin/bash for test_file in $(ls *_test.py ../nonstandard/*_test.py) do echo -e "========== Running $test_file" ./$test_file if [ "$?" -ne "0" ]; then echo "Died in $test_file" exit 1 fi done
Shell
#!/bin/bash #Getting automatically names artifactId=`grep artifactId pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` version=`grep version pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` input="input" output="output" #Compiling and packaging mvn -o clean mvn -o assembly:assembly -Dmaven.test.skip=true rm -r "$ou...
Shell
#!/bin/bash #Getting automatically names artifactId=`grep artifactId pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` version=`grep version pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` input="input" output="output" #Compiling and packaging mvn -o clean mvn -o assembly:assembly -Dmaven.test.skip=true #Preparing ...
Shell
#!/bin/bash #Getting automatically names artifactId=`grep artifactId pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` version=`grep version pom.xml | head -1 | cut -d">" -f2 | cut -d"<" -f1` input="input" output="output" #Compiling and packaging mvn -o clean mvn -o assembly:assembly -Dmaven.test.skip=true rm -r "$out...
Shell
#!/bin/ash # This is a shell wrapper that finds an appropriate nitfol in your path # and runs it. Requires 'which' and sh. (only tested with bash, so YMMV) if [ $DISPLAY ] && [ `which xnitfol` ] ; then xnitfol "$@" elif [ `which termnitfol` ] ; then termnitfol -revgrid yes -border no -ml no "$@" elif [ `whic...
Shell
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
Shell
#!@SHELL@ # # run OpenVPN client against ``test reference'' server # - check that ping, http, ... via tunnel works # - check that interface config / routes are properly cleaned after test end # # prerequisites: # - openvpn binary in current directory # - writable current directory to create subdir for logs # - t_client...
Shell
#! /bin/sh # # t_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, o...
Shell
#! /bin/sh # # t_cltsrv.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005, 2006, 2008 Matthias Andree # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of th...
Shell
#! /bin/sh echo "${role}:${signal}" >&3
Shell
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # add the stuff that doesn't change if it's not already there grep -q '^202 ' /etc/iproute2/rt_tables if [ "$?" -ne 0 ] then echo 202 vpn.out >> /e...
Shell
#!/bin/sh # # Bring down vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # clear routing via VPN ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out ip route del table vpnonly.out via "$5" iptabl...
Shell
#!/bin/sh # Sample script to perform OCSP queries with OpenSSL # given a certificate serial number. # If you run your own CA, you can set up a very simple # OCSP server using the -port option to "openssl ocsp". # Full documentation and examples: # http://www.openssl.org/docs/apps/ocsp.html # Edit the following val...
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically sets the proper /etc/resolv.conf entries # as pulled down from an OpenVPN server....
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically removes the /etc/resolv.conf entries previously # set by the companion script "cl...
Shell
#!/bin/sh #################################### # Tear Down Ethernet bridge on Linux #################################### # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged together tap="tap0" ifconfig $br down brctl delbr $br for t in $tap; do openvpn --rmtun --dev $t done
Shell
#!/bin/sh ################################# # Set up Ethernet bridge on Linux # Requires: bridge-utils ################################# # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged, # for example tap="tap0 tap1 tap2". tap="tap0" # Define physical ethernet interface to be bridged...
Shell
#!/bin/sh route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
Shell
#!/bin/sh # A Sample OpenVPN-aware firewall. # eth0 is connected to the internet. # eth1 is connected to a private subnet. # Change this subnet to correspond to your private # ethernet subnet. Home will use HOME_NET/24 and # Office will use OFFICE_NET/24. PRIVATE=10.0.0.0/24 # Loopback address LOOP=127.0.0.1 # De...
Shell
#!/bin/sh # A sample OpenVPN startup script # for Linux. # openvpn config file directory dir=/etc/openvpn # load the firewall $dir/firewall.sh # load TUN/TAP kernel module modprobe tun # enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # Invoke openvpn for each VPN tunnel # in daemon mode. Alternative...
Shell
#!/bin/sh route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # # openvpn This shell script takes care of starting and stopping # openvpn on RedHat or other chkconfig-based system. # # chkconfig: 345 24 76 # # description: OpenVPN is a robust and highly flexible tunneling application \ # that uses all of the encryption, authentication, a...
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: openvpn # Required-Start: $network # Required-Stop: $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: This shell script takes care of starting and stopping OpenVP...
Shell