code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
#
# runlex.sh
# Script to run Lex/Flex.
# First argument is the (quoted) name of the command; if it's null, that
# means that neither Flex nor Lex was found, so we report an error and
# quit.
#
# $Id: runlex.sh 22450 2007-08-04 03:27:18Z guy $
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gera... | Shell |
#!/bin/bash
#
# $Id: list_protos_in_cap.sh 36479 2011-04-05 19:21:16Z wmeier $
#
# List the protocols (dissectors) used in capture file(s)
#
# This script extracts the protocol names contained in a given capture file.
# This is useful for generating a "database" (flat file :-)) of in what file
# a given protocol can be... | Shell |
#!/bin/bash
#
# $Id: win32-setup.sh 37313 2011-05-19 21:10:26Z gerald $
# 32-bit wrapper for win-setup.sh.
export DOWNLOAD_TAG="2011-05-19"
export WIRESHARK_TARGET_PLATFORM="win32"
WIN_SETUP=`echo $0 | sed -e s/win32/win/`
exec $WIN_SETUP $@
| Shell |
#!/bin/bash
#
# $Id: randpkt-test.sh 33468 2010-07-07 19:53:40Z gerald $
# Randpkt testing script for TShark
#
# This script uses Randpkt to generate capture files with randomized
# content. It runs TShark on each generated file and checks for errors.
# The files are processed repeatedly until an error is found.
# T... | Shell |
#!/bin/bash
# Compare ABIs of two Wireshark working copies
# $Id: compare-abis.sh 37977 2011-07-11 20:12:22Z gerald $
function acc () {
LIBNAME=$1
DIR=$2
# compare only dumped ABI descriptions first, then fall back to full comparison
# if no difference is found
if abi-compliance-checker -separately -l $LIBNAME \... | Shell |
#!/bin/bash
#
# $Id: test-fuzzed-cap.sh 36622 2011-04-13 15:36:05Z morriss $
# A little script to run tshark on a capture file that failed fuzz testing.
# Useful because it sets up ulimits for you. (I'm writing this after having
# my machine hang up for like 15 minutes because I wasn't paying attention
# while tshark... | Shell |
#! /bin/sh
#
# $Id: make-tapreg-dotc 30297 2009-10-04 10:51:53Z krj $
#
#
# The first argument is the output filename.
#
outfile="$1"
shift
#
# The second argument is the directory in which the source files live.
#
srcdir="$1"
shift
#
# All subsequent arguments are the files to scan.
#
rm -f ${outfile}-tmp
echo '/... | Shell |
#!/bin/bash
#
# $Id: textify.sh 32440 2010-04-09 21:42:51Z gerald $
#
# Text file conversion script for packaging on Windows
#
# This script copies a text file from a source to a destination,
# converting line endings and adding a ".txt" filename extension
# if needed. If the destination is a directory the source file
... | Shell |
#!/bin/bash
# Compare ABIs of two Wireshark working copies
# $Id: compare-abis.sh 37977 2011-07-11 20:12:22Z gerald $
function acc () {
LIBNAME=$1
DIR=$2
# compare only dumped ABI descriptions first, then fall back to full comparison
# if no difference is found
if abi-compliance-checker -separately -l $LIBNAME \... | Shell |
#! /bin/sh
#
# $Id: make-dissector-reg 21716 2007-05-07 17:55:42Z gal $
#
#
# The first argument is the directory in which the source files live.
#
srcdir="$1"
shift
#
# The second argument is either "plugin" or "dissectors"; if it's
# "plugin", we build a plugin.c for a plugin, and if it's
# "dissectors", we build ... | Shell |
#! /bin/bash
#
# $Id: idl2wrs.sh.in 35944 2011-02-14 01:44:15Z cmaynard $
#
# File : idl2wrs
#
# Author : Frank Singleton (frank.singleton@ericsson.com)
#
# Copyright (C) 2001 Frank Singleton, Ericsson Inc.
#
# This file is a simple shell script wrapper for the IDL to
# Wireshark dissector code.
#
# i... | Shell |
#!/bin/bash
#
# $Id: list_protos_in_cap.sh 36479 2011-04-05 19:21:16Z wmeier $
#
# List the protocols (dissectors) used in capture file(s)
#
# This script extracts the protocol names contained in a given capture file.
# This is useful for generating a "database" (flat file :-)) of in what file
# a given protocol can be... | Shell |
#! @SHELL@
#
# $Id: idl2wrs.sh.in 35944 2011-02-14 01:44:15Z cmaynard $
#
# File : idl2wrs
#
# Author : Frank Singleton (frank.singleton@ericsson.com)
#
# Copyright (C) 2001 Frank Singleton, Ericsson Inc.
#
# This file is a simple shell script wrapper for the IDL to
# Wireshark dissector code.
#
# ie:... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2005-06-08.21
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribu... | Shell |
#!/bin/bash
#
# Check for SVN version
#
# $Id: check_svn_version.sh 36498 2011-04-06 16:34:45Z sfisher $
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 2005 Ulf Lamping
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU... | Shell |
#!/bin/bash
#
# Check for SVN version
#
# $Id: check_svn_version.sh 36498 2011-04-06 16:34:45Z sfisher $
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 2005 Ulf Lamping
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2005-05-14.22
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the ... | Shell |
#! /bin/bash -e
#
# Debian prerm script for Python x.y hierarchical modules
# Written by Gregor Hoffleit <flight@debian.org>
# Extended by Matthias Klose <doko@debian.org>
#
PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
dpkg --listfiles $PACKAGE |
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
xargs rm -f >&2
#DEBHELPER... | Shell |
#! /bin/bash -e
#
# Debian prerm script for Python x.y hierarchical modules
# Written by Gregor Hoffleit <flight@debian.org>
# Extended by Matthias Klose <doko@debian.org>
#
PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
dpkg --listfiles $PACKAGE |
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
xargs rm -f >&2
#DEBHELPER... | Shell |
#! /bin/sh -e
if test -e /usr/etc/manuf ; then rm /usr/etc/manuf ; fi
#DEBHELPER#
| Shell |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_preferences.dpatch by <fpeters@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: use Debian sensible-browser
@DPATCH@
diff -urNad wireshark-0.99.7~pre1~/epan/prefs.c wireshark-0.99.7~pre1/epan/prefs.c
--- wireshark-0.99.7~pre1~/epa... | Shell |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_preferences.dpatch by <fpeters@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: use Debian sensible-browser
@DPATCH@
diff -urNad wireshark-0.99.7~pre1~/epan/prefs.c wireshark-0.99.7~pre1/epan/prefs.c
--- wireshark-0.99.7~pre1~/epa... | Shell |
#! /bin/sh -e
if test -e /usr/etc/manuf ; then rm /usr/etc/manuf ; fi
#DEBHELPER#
| Shell |
#!/bin/sh
#
# This script returns the flags to be fed to "aclocal" to ensure that
# it finds GLib's aclocal macros (we assume GTK+ is installed in the
# same place as GLib) and pkg-config's aclocal macros.
#
# aclocal will search, by default, only in a directory in the same
# tree where it was installed - e.g., if inst... | Shell |
#!/bin/sh
#
# Run this to generate all the initial makefiles.
#
# $Id: autogen.sh 26209 2008-09-15 19:57:56Z morriss $
DIE=true
PROJECT="Wireshark"
# If you are going to use the non-default name for automake becase your OS
# installaion has multiple versions, you need to call both aclocal and automake
# with that ver... | Shell |
#!/bin/sh
#
# dex2jar - Tools to work with android .dex and java .class files
# Copyright (c) 2009-2012 Panxiaobo
#
# 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... | Shell |
#!/bin/bash
mkdir -p winxpcd
test -d winxpcd/I386 || sudo mount -o loop winxp.iso winxpcd
| Shell |
#!/bin/bash
addr=10.1.1.2
log=/var/log/binlsrv.log
pid=/var/run/binlsrv.pid
if [ "$1" == "start" ]; then
rislinux/binlsrv.py --daemon --logfile="$log" --pid "$pid" --address="$addr" rislinux/devlist.cache
elif [ "$1" == "stop" ]; then
kill "$(cat "$pid")" && rm "$pid"
else
echo "Usage: $0 start | stop"
fi... | Shell |
#!/bin/bash
test -d $dest && exit 0
./mount-winxpcd
./extract-lan-drivers
#switch the line below with the one above if you'd rather use winxp's drivers
#./extract-winxp-drivers
dest=tftproot/winxp
mkdir -p $dest
cp -R winxpcd/I386 $dest
mkdir -p $dest/I386
cp drivers/* $dest/I386
| Shell |
#!/bin/bash
./get-ris-linux
(cd rislinux; gcc binlsrv.c -o binlsrv)
| Shell |
#!/bin/bash
### BEGIN INIT INFO
# Provides: mini_binlsrv
# Required-Start: $local_fs $syslog $network
# Required-Stop: $local_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mini binl server
# Description: mini binl server
### END INIT INFO
home=... | Shell |
#!/bin/bash
chgrp tftp tftproot -R
chmod g-w tftproot -R
chmod u+w tftproot -R
chmod o-rwx tftproot -R
| Shell |
#!/bin/bash
rm drivers
rm inf
rm ris-linux-*.tar.gz
rm DP_*.7z
sudo rm -R atftpd
sudo umount winxpcd
rmdir winxpcd
| Shell |
#!/bin/bash
RISVER=ris-linux-0.4
test -f $RISVER.tar.gz || wget http://oss.netfarm.it/guides/$RISVER.tar.gz
test -d rislinux || {
tar xvf $RISVER.tar.gz && mv $RISVER rislinux
}
| Shell |
#!/bin/bash
./get-lan-drivers
test -d inf && exit 0
test -d drivers && exit 0
rm -Rf lan-drivers.temp
mkdir -p lan-drivers.temp
for i in DP_LAN_wnt5_x86-32_1101.7z DP_LAN-RIS_wnt5_x86-32_1011.7z; do
if [ -f $i ]; then
cp $i lan-drivers.temp/$i
(cd lan-drivers.temp; p7zip -d $i)
fi
done
mkdir -p inf
mkdir ... | Shell |
#!/bin/bash
./mount-winxpcd
test -f tftproot/startrom.n12 || cabextract winxpcd/I386/startrom.n1_ -d tftproot/.
test -f tftproot/ntldr || cp winxpcd/I386/setupldr.bin tftproot/ntldr
test -f tftproot/ntdetect.com || cp winxpcd/I386/ntdetect.com tftproot/ntdetect.com
| Shell |
#!/bin/bash
./extract-boot-files
./get-ris-linux
chmod u+w tftproot/ntldr && rislinux/fixloader.py tftproot/ntldr
| Shell |
#!/bin/bash
./get-ris-linux
test -d atftpd || (
mkdir -p atftpd
cd atftpd
apt-get source atftpd || exit 0
cd atftp-0.7.dfsg
patch -p1 < ../../rislinux/patches/atftpd-filecase.diff || exit 0
sudo dpkg-buildpackage
cd ..
sudo dpkg -i atftpd*.deb
)
| Shell |
#!/bin/bash
./mount-winxpcd
test -d inf && exit 0
test -d drivers && exit 0
mkdir -p inf
mkdir -p drivers
cabextract winxpcd/I386/*.IN_ -F "*.inf" -d inf
cabextract winxpcd/I386/driver.cab -d drivers
cabextract winxpcd/I386/sp3.cab -d drivers
| Shell |
#!/bin/bash
test -f DP_LAN_wnt5_x86-32_1101.7z || {
echo "This will download WinXP LAN drivers pack via bittorrent. Press ^C when 100% downloaded. Press any key to continue..."
read
btdownloadheadless http://driverpacks.net/driverpacks/windows/xp/x86/lan/11.01/download/torrent
}
test -f DP_LAN-RIS_wnt5_x8... | Shell |
#!/bin/bash
./get-ris-linux
./extract-lan-drivers
#switch the line below with one above if you like winxp original drivers better
#./extract-winxp-drivers
test -f rislinux/devlist.cache || (
cd rislinux
./infparser.py ../inf
)
| Shell |
#!/bin/bash
./clean-everything
tar czvf winxp-netinstall.tgz * --exclude rislinux --exclude winxp-netinstall.tgz
| Shell |
#! /bin/sh
if [ "$ICSCROWDAPIKEY" != "" ]
then
echo "Generating new translation archives"
fetch -q -1 -o - http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY
fi
echo "Fetch translation archive"
fetch -q http://crowdin.net/download/project/ics-openvpn.zip
langtoinclude="ca cs de es et fr id ... | Shell |
#!/bin/bash
function dumplib()
{
LIB=$1
for arch in armeabi-v7a armeabi; do
VER=$(dump_syms obj/local/$arch/$LIB |grep MODULE | cut -d " " -f 4)
mkdir -p symbols/$LIB/$VER
dump_syms obj/local/armeabi-v7a/$LIB > symbols/$LIB/$VER/$LIB.sym
done
}
dumplib libopenvpn.so
| Shell |
ndk-build APP_API=all -j 8
if [ $? = 0 ]; then
rm -rf build/native-libs/
cd libs
mkdir -p ../assets
for i in *
do
cp -v $i/minivpn ../assets/minivpn.$i
done
# Removed compiled openssl libs, will use platform so libs
# Reduces size of apk
rm -v */libcrypto.so */libssl.so
for arch in *
do
build... | Shell |
#! /bin/bash
# libtoolT - Provide generalized library-building support services.
# Generated automatically by (GNU lzo 2.03)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# ... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2011-04-16.09; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2011 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
# Generated from ltmain.m4sh.
# libtool (GNU libtool) 2.2.10
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. T... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2011-01-19.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
scriptversion=2010-08-21.06; # UTC
# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009, 2010
# Free Software Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2009-04-28.21; # UTC
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@g... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2010-11-15.09; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it un... | Shell |
#!/bin/sh
# py-compile - Compile a Python program
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 Free Software
# Foundation, Inc.
# 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
... | Shell |
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
scriptversion=2010-02-06.18; # UTC
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
# 2007, 2009, 2010 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it a... | Shell |
#! /bin/sh
set -e
#
# usage: util/overlap.sh [directory]
#
# This script runs the overlap example program on a complete directory tree.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
OVERLAP="overlap"
test -x ./examples/overlap && OVERLAP="./examples/overlap"
test -x ./overlap.exe && OVERLAP="./o... | Shell |
#! /bin/sh
set -e
#
# usage: util/check.sh [directory]
#
# This script runs lzotest with all algorithms on a complete directory tree.
# It is not suitable for accurate timings.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
LZOTEST="lzotest"
test -x ./lzotest/lzotest && LZOTEST="./lzotest/lzotest... | Shell |
#! /bin/sh
set -e
#
# usage: util/checkasm.sh [directory]
#
# This script runs lzotest with all assembler decompressors
# on a complete directory tree.
# It is not suitable for accurate timings.
#
# Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
#
LZOTEST="lzotest"
test -x ./lzotest/lzotest && LZOTEST=... | Shell |
#! /bin/sh
# vi:ts=4:et
# Copyright (C) 1996-2011 Markus F.X.J. Oberhumer
rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out
true
| Shell |
#! /bin/sh
# vi:ts=4:et
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
LZO_CFG_FREESTANDING=1
. $top_srcdir/B/generic/build.sh
| Shell |
#! /bin/sh
# vi:ts=4:et
set -e
echo "// Copyright (C) 1996-2011 Markus F.X.J. Oberhumer"
echo "//"
echo "// Generic Posix/Unix system"
echo "// Generic C compiler"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
test "X${AR}" = X && AR="ar"
test "X${CC}" = X && CC="cc"
test "X${CFLAGS+... | Shell |
#! /bin/sh
# vi:ts=4:et
set -e
echo "// Using GNU C compiler."
echo "//"
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
UNAME_MACHINE=unknown
CC="gcc -fPIC"
CC="gcc -static"
CC="gcc"
CFLAGS="-Wall -O2 -fomit-frame-pointer"
# delete the next line to disable assembler support
UNAME_MACHINE... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# 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 a... | Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/bin/bash
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 a... | Shell |
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
| Shell |
#!/bin/sh
#
# build using pthreads
#
# http://www.mit.edu:8001/people/proven/pthreads.html
#
/bin/rm -f mttest
pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# 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 a... | Shell |
#!/bin/sh
if [ "$1" = "" ]; then
key=../apps/server.pem
else
key="$1"
fi
if [ "$2" = "" ]; then
cert=../apps/server.pem
else
cert="$2"
fi
ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key... | 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_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
#
# 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
# 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 removes the /etc/resolv.conf entries previously
# set by the companion script "cl... | 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
#
# 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
#
# 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
#
# 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 |
#!/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
####################################
# 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
#
# 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../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | 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
# stop all openvpn processes
killall -TERM openvpn
| Shell |
#!/bin/sh
route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
| 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 |
wsrun.pl fifo_hier_bench fifo_hier_bench.v fifo_hier.v fifo.v clkrst.v dff64.v dff.v
| Shell |
wsrun.pl -wave sc_hier_bench sc_hier_bench.v sc_hier.v sc.v clkrst.v ctr_comb.v ctr_seq.v dff.v
| Shell |
#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"
javac -target 1.5 -source 1.5 $DIR/testlibs/*.java
if [ -n "$JYTHON_HOME" ]
then
javac -cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 $DIR/listeners/*.java
else
echo set JYTHON_HOME to compile listeners
fi
| Shell |
#!/bin/sh
testdir=`dirname $0`
rm -f $testdir/output.*
export PYTHONPATH=$testdir/../../../src
python -m robot.run -l none -r none -d $testdir $testdir/test.txt
python $testdir/../times2csv.py $testdir/output.xml
echo "------------------------------ results ------------------------------"
cat $testdir/output.csv
echo "... | Shell |
#!/bin/bash
testdir=`dirname $0`
pybot --loglevel DEBUG --log none --report none --outputdir $testdir $testdir/example.txt
python $testdir/../statuschecker.py $testdir/output.xml
rebot $testdir/output.xml
echo "$? tests failed, 5 should have failed."
echo "Check that tests starting with 'FAILURE:' have failed and other... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.