code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> # Copyright 2005-2007, Cake Software Foundation, Inc. # 1785 E. ...
Shell
#! /bin/sh # Run this to generate all the initial makefiles, etc. glibtoolize || exit 1 gtkdocize || exit 1 aclocal -Im4 \ && automake --gnu --add-missing \ && autoconf
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 # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
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 # install - install a program, script, or datafile scriptversion=2009-04-28.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/bash # (C) Copyright 2014, 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 to in wr...
Shell
#!/bin/bash if [ $# -ne 1 ] then echo "Usage:$0 scantype" echo "UNLV data comes in several scan types:" echo "3B=300 dpi binary" echo "3A=adaptive thresholded 300 dpi" echo "3G=300 dpi grey" echo "4B=400dpi binary" echo "2B=200dpi binary" echo "For now we only use 3B" exit 1 fi ext=...
Shell
#!/bin/bash # File: runalltests.sh # Description: Script to run a set of UNLV test sets. # Author: Ray Smith # Created: Thu Jun 14 08:21:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
Shell
#!/bin/bash # File: runtestset.sh # Description: Script to run tesseract on a single UNLV set. # Author: Ray Smith # Created: Wed Jun 13 10:13:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
Shell
#!/bin/bash # File: counttestset.sh # Description: Script to count the errors on a single UNLV set. # Author: Ray Smith # Created: Wed Jun 13 11:58:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in comp...
Shell
#-*- mode: shell-script;-*- # # bash completion support for tesseract # # Copyright (C) 2009 Neskie A. Manuel <neskiem@gmail.com> # Distributed under the Apache License, Version 2.0. # _tesseract_languages() { local TESSDATA="/usr/share/tesseract-ocr/tessdata/" local langs="$(ls $TESSDATA | grep traineddata | cut -...
Shell
#!/bin/bash # # File: generate_manpages.sh # Description: Converts .asc files into man pages, etc. for Tesseract. # Author: eger@google.com (David Eger) # Created: 9 Feb 2012 # # (C) Copyright 2012 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this f...
Shell
#!/bin/sh # This is a simple script which is meant to help developers # better deal with the GNU autotools, specifically: # # aclocal # autoheader # autoconf # automake # # The whole thing is quite complex... # # The idea is to run this collection of tools on a single platform, # typically the main development...
Shell
# echo "setup ZeeB ZeeB-00-00-00 in /afs/cern.ch/user/n/narayan/testarea/17.0.5" if test "${CMTROOT}" = ""; then CMTROOT=/cvmfs/atlas.cern.ch/repo/sw/software/i686-slc5-gcc43-opt/17.0.5/CMT/v1r23; export CMTROOT fi . ${CMTROOT}/mgr/setup.sh cmtZeeBtempfile=`${CMTROOT}/mgr/cmt -quiet build temporary_name` if test ! $...
Shell
# echo "cleanup ZeeB ZeeB-00-00-00 in /afs/cern.ch/user/n/narayan/testarea/17.0.5" if test "${CMTROOT}" = ""; then CMTROOT=/cvmfs/atlas.cern.ch/repo/sw/software/i686-slc5-gcc43-opt/17.0.5/CMT/v1r23; export CMTROOT fi . ${CMTROOT}/mgr/setup.sh cmtZeeBtempfile=`${CMTROOT}/mgr/cmt -quiet build temporary_name` if test !...
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 ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2010, Cake Software Foundation, Inc. # # Licensed under The ...
Shell
#!/bin/bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP versions 4 and 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2010, Cake Software Foundation, Inc. # # Licensed under The ...
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 make clean mkdir mountpoint &> /dev/null insmod compression/zlib_inflate/zlib_inflate.ko ./compile && insmod ./zstfs.ko && mount -t zstfs -o loop fs mountpoint
Shell
#!/bin/bash make -C/usr/src/linux -j3 SUBDIRS=$PWD modules
Shell
#!/bin/bash umount mountpoint rmmod zstfs rmmod compression/zlib_inflate/zlib_inflate.ko
Shell
#!/bin/bash make -C/usr/src/linux -j3 SUBDIRS=$PWD modules
Shell
#!/bin/bash make clean mkdir mountpoint &> /dev/null insmod compression/zlib_inflate/zlib_inflate.ko ./compile && insmod ./zstfs.ko && mount -t zstfs -o loop fs mountpoint
Shell
#!/bin/bash umount mountpoint rmmod zstfs rmmod compression/zlib_inflate/zlib_inflate.ko
Shell
#!/bin/sh android update project --name Pano --path .
Shell
#!/bin/sh android update project --name Pano --path .
Shell
#!/bin/sh echo "echoing bad headers: server must report status 500" exec 1>&2 echo shit!!!
Shell
#!/bin/sh echo "Content-Type: text/plain" echo echo $QUERY_STRING
Shell
#!/bin/sh echo "Content-Type: text/plain" echo echo "This is shell script CGI."
Shell
#!/bin/bash -x # # $Id: buildcurrent.sh 673 2007-09-10 20:59:52Z chklin $ # # based on build_packages.sh # builds whatever is in current working directory, # does not pull any external source # may be run inside an isolated virtual machine for safe automatic builds # # Copyright 2007 Google Inc. All rights reserved. # ...
Shell
#!/bin/sh # run after the base packages are installed, from inside the d-i environment # copied into the initrd so it doesn't need to be fetched over network # connections. # $Id: etch-late.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: G...
Shell
#!/bin/sh -x # Run the etch/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # $Id: test-etch-i386.sh 654 2007-09-05 21:37:06Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e if [ "x$MACFILE" = "x" -o "x$MAC...
Shell
#!/bin/sh # run after the base packages are installed, from inside the d-i environment # copied into the initrd so it doesn't need to be fetched over network # connections. # $Id: dapper-late.sh 780 2007-10-10 04:58:18Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License:...
Shell
#!/bin/sh # run early in the dapper install, from the preseed # $Id: etch-early.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e
Shell
#!/bin/sh -x # Set up the initial Ubuntu/dapper template image, for use when duplicating # the install to multiple server/client tests. Makes use of tunbr and # a presetup br1, squid, and dnsmasq. # $Id: dapper-i386.sh 780 2007-10-10 04:58:18Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <d...
Shell
#!/bin/sh -x # Run the dapper/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # Any parameters are copied to the destination instance and executed as root # $Id: test-dapper-i386.sh 769 2007-10-05 03:20:43Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Die...
Shell
#!/bin/sh # # $Id: proxy.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # # Set up the local machine (Debian or derivative) with the pass-through proxy. set -e VIRTNET="192.168.23.0/24" VIRTHOST="192.168.23.1" [ -x /etc/default/testenv ] && . /etc/default/testenv # if apache2 was already installed and the default Virt...
Shell
#!/bin/sh # Turn the swap partition into a physical volume in the sysvg volume group # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e modprobe dm-mod || true if egrep dm_mod /proc/modules ; then dev=`awk '/swap/ { print $1; }' /etc/fstab` egrep dm-mod /etc/mo...
Shell
#!/bin/sh # # $Id$ # # Install and configure atftpd for use with the virtualization test # environment for zumastor. # # Copyright 2007 Google Inc. All rights reserved. # Author: Drake Diedrich (dld@google.com) VIRTHOST="192.168.23.1" [ -x /etc/default/testenv ] && . /etc/default/testenv # Create /tftpboot if it doe...
Shell
#!/bin/sh # run after the base packages are installed, from inside the d-i environment # copied into the initrd so it doesn't need to be fetched over network # connections. # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e mkdir /target/root/.ssh cp /authorized_ke...
Shell
#!/bin/sh -x # # $Id$ # # Install and configure dnsmasq to dynamically serve DNS and DHCP # for the range of addresses managed by tunbr, part of the zumastor # virtual test environment. # The default /etc/dnsmasq.conf is locally diverted and replaced # with the configuration file inline below, with instructions o...
Shell
#!/bin/sh # run early in the dapper install, from the preseed # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e
Shell
#!/bin/sh -x # Set up the initial Ubuntu/dapper template image, for use when duplicating # the install to multiple server/client tests. Makes use of tunbr and # a presetup br1, squid, and dnsmasq. # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e rc=0 SSH='ssh -...
Shell
#!/bin/sh -x # # $Id$ # # Add the br1 bridge to /etc/network/interfaces, as required by tests in # the tunbr virtualization environment. # VIRTNET="192.168.23.0/24" VIRTHOST="192.168.23.1" VIRTBR="br1" [ -x /etc/default/testenv ] && . /etc/default/testenv if echo $VIRTNET | egrep "/24" then NETWORK=`echo $VIRTNET |...
Shell
#!/bin/sh # run early in the dapper install, from the preseed # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e
Shell
#!/bin/sh # # $Id$ # # Set up the local machine (Debian or derivative) with the pass-through proxy. set -e VIRTNET="192.168.23.0/24" VIRTHOST="192.168.23.1" [ -x /etc/default/testenv ] && . /etc/default/testenv # if apache2 was already installed and the default VirtualHost is already # enabled, leave it alone. Else...
Shell
#!/bin/sh -x # Run the dapper/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # Any parameters are copied to the destination instance and executed as root # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e SSH='ssh -o S...
Shell
#!/bin/sh -x # Set up the initial Debian/etch template image, for use when duplicating # the install to multiple server/client tests. Makes use of tunbr and # a presetup br1, squid, and dnsmasq. # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e SSH='ssh -o Strict...
Shell
#!/bin/sh -x # Run the etch/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e if [ "x$MACFILE" = "x" -o "x$MACADDR" = "x" -o "x$IFACE" = "x" \ -o "x$IPADDR" = "x" ] ...
Shell
#!/bin/sh # run after the base packages are installed, from inside the d-i environment # copied into the initrd so it doesn't need to be fetched over network # connections. # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e mkdir /target/root/.ssh cp /authorized_ke...
Shell
#!/bin/sh -x # # $Id$ # # Install any other zumastor testenv (cbtb) dependencies aptitude install timeout uml-utilities
Shell
#!/bin/sh -x # # $Id: dnsmasq.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # # Install and configure dnsmasq to dynamically serve DNS and DHCP # for the range of addresses managed by tunbr, part of the zumastor # virtual test environment. # The default /etc/dnsmasq.conf is locally diverted and replaced # with the...
Shell
#!/bin/sh -x # # $Id: dependencies.sh 654 2007-09-05 21:37:06Z drake.diedrich $ # # Install any other zumastor testenv (cbtb) dependencies aptitude install timeout uml-utilities
Shell
#!/bin/sh # # $Id: atftpd.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # # Install and configure atftpd for use with the virtualization test # environment for zumastor. # # Copyright 2007 Google Inc. All rights reserved. # Author: Drake Diedrich (dld@google.com) VIRTHOST="192.168.23.1" [ -x /etc/default/testenv ] && ...
Shell
#!/bin/sh # run early in the dapper install, from the preseed # $Id: dapper-early.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e
Shell
#!/bin/sh -x # # $Id: interfaces-bridge.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # # Add the br1 bridge to /etc/network/interfaces, as required by tests in # the tunbr virtualization environment. # VIRTNET="192.168.23.0/24" VIRTHOST="192.168.23.1" VIRTBR="br1" [ -x /etc/default/testenv ] && . /etc/default/testenv ...
Shell
#!/bin/sh # Turn the swap partition into a physical volume in the sysvg volume group # $Id: swap2sysvg.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e modprobe dm-mod || true if egrep dm_mod /proc/modules ; then dev=`awk '...
Shell
#!/bin/sh -x # Set up the initial Debian/etch template image, for use when duplicating # the install to multiple server/client tests. Makes use of tunbr and # a presetup br1, squid, and dnsmasq. # $Id: etch-i386.sh 629 2007-08-29 23:42:00Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@g...
Shell
#!/bin/sh -x # Run the zuma/dapper/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # Any parameters are copied to the destination instance and executed as root # $Id: test-zuma-dapper-i386.sh 770 2007-10-05 03:23:07Z drake.diedrich $ # Copyright 2007 Google Inc. # Author:...
Shell
#!/bin/bash -x # # $Id: ptxdist-image.sh 688 2007-09-12 23:05:01Z chklin $ # # based partially on buildcurrent.sh # builds a ptxdist image with zumastor kernel and userland support # # Copyright 2007 Google Inc. # Author: Chuan-kai Lin (cklin@google.com) KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' ...
Shell
#!/bin/sh -x # # $Id: dapper-build.sh 737 2007-09-25 20:44:01Z drake.diedrich $ # # Launch a dapper-i386 snapshot # create a build user in the snapshot # copy the zumastor source to ~build # run buildcurrent.sh as user build in the testenv instance # pull the debs out of the instance # shut down the instance # # Copy t...
Shell
#!/bin/sh -x # # Build an image with current or provided zumastor debs installed, booted, # and ready to immediately run single-node tests. # Inherits from the generic dapper template. # # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e KERNEL_VERSION=`awk '/^2\.6\....
Shell
#!/bin/sh -x # # $Id$ # # Launch a dapper-i386 snapshot # create a build user in the snapshot # copy the zumastor source to ~build # run buildcurrent.sh as user build in the testenv instance # pull the debs out of the instance # shut down the instance # # Copy this to a directory outside the working directory, and laun...
Shell
#!/bin/sh -x # # $Id$ # # Continuously check whether a new build has completed, and install # the new debs into a new image to use for testing. Create a symlink to # the new image for the continuous-test script to notice and launch tests # against. buildrev='' if [ -L ${HOME}/buildrev ] ; then buildrev=`readlink $...
Shell
#!/bin/bash -x # # $Id$ # # based partially on buildcurrent.sh # builds a ptxdist image with zumastor kernel and userland support # # Copyright 2007 Google Inc. # Author: Chuan-kai Lin (cklin@google.com) KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' KernelVersion` if [ "x$KERNEL_VERSION" = "x" ] ; th...
Shell
#!/bin/sh -x # # $Id$ # # Continuously svn update, run the encapsulated build # Create symlinks to the new debs each time a new build is successful, # so other continuous-* scripts can tell at a glance that a new one # has arrived. mailto=/usr/bin/mailto sendmail=/usr/sbin/sendmail biabam=/usr/bin/biabam TUNBR=tunbr ...
Shell
#!/bin/sh -x # Run the zuma/dapper/i386 image using -snapshot to verify that it works. # The template should be left unmodified. # Any parameters are copied to the destination instance and executed as root # $Id$ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@google.com> # License: GPLv2 set -e SSH='ssh...
Shell
#!/bin/sh -x # # $Id$ # # # continuously run an svn update on a zumastor repository with the cbtb/tests # Whenever the last successful test revision differs from the last successful # install revision, fire off a new round of tests. installrev='' if [ -L ${HOME}/installrev ] ; then installrev=`readlink ${HOME}/insta...
Shell
#!/bin/sh -x # # Build an image with current or provided zumastor debs installed, booted, # and ready to immediately run single-node tests. # Inherits from the generic dapper template. # # $Id: zuma-dapper-i386.sh 776 2007-10-09 02:36:31Z drake.diedrich $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@googl...
Shell
#!/bin/sh -x # # $Id: continuous-install.sh 776 2007-10-09 02:36:31Z drake.diedrich $ # # Continuously check whether a new build has completed, and install # the new debs into a new image to use for testing. Create a symlink to # the new image for the continuous-test script to notice and launch tests # against. buil...
Shell
#!/bin/sh -x # # $Id: continuous-test.sh 770 2007-10-05 03:23:07Z drake.diedrich $ # # # continuously run an svn update on a zumastor repository with the cbtb/tests # Whenever the last successful test revision differs from the last successful # install revision, fire off a new round of tests. installrev='' if [ -L ${H...
Shell
#!/bin/sh -x # # $Id: continuous-build.sh 776 2007-10-09 02:36:31Z drake.diedrich $ # # Continuously svn update, run the encapsulated build # Create symlinks to the new debs each time a new build is successful, # so other continuous-* scripts can tell at a glance that a new one # has arrived. mailto=/usr/bin/mailto s...
Shell
#!/bin/sh -x # # $Id: replication-test.sh 783 2007-10-10 22:22:14Z drake.diedrich $ # # Set up sysvg with origin and snapshot store on master and secondary machine. # Begin replication cycle between machines # and wait until it arrives and can be verified. # Modify the origin and verify that the modification also arriv...
Shell
#!/bin/sh -x # # $Id: nfs-test.sh 766 2007-10-02 23:57:21Z drake.diedrich $ # # Export zumastor over NFS to a slave and then perform some filesystem # actions. Verify that the filesystem actions arrive in the snapshot store. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) ...
Shell
#!/bin/sh -x # # $Id$ # # Set up sysvg with origin and snapshot store on master and secondary machine. # Begin replication cycle between machines # and wait until it arrives and can be verified. # Modify the origin and verify that the modification also arrives at the # backup. # # Requires that the launch environment (...
Shell
#!/bin/sh -x # # $Id$ # # Export zumastor over NFS to a slave and then perform some filesystem # actions. Verify that the filesystem actions arrive in the snapshot store. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set -e rc=0 # Terminate test in 20 minutes. Read ...
Shell
#!/bin/sh -x # $Id$ # simple paramter script for zuma-test-dapper-i386.sh script # will wait until return is pressed set -e env hostname ifconfig eth0 || true ifconfig eth1 || true echo "slogin root@ the IP address above to work interactively" echo "Press return to end the session" read ret
Shell
#!/bin/sh -x # $Id: wait.sh 632 2007-08-30 01:36:33Z drake.diedrich $ # simple paramter script for zuma-test-dapper-i386.sh script # will wait until return is pressed set -e env hostname ifconfig eth0 || true ifconfig eth1 || true echo "slogin root@ the IP address above to work interactively" echo "Press return to...
Shell
#!/bin/sh -x # # $Id: boot-order.sh 741 2007-09-26 14:48:31Z drake.diedrich $ # # Boot and install insserv, and make sure zumastor doesn't show up # in its list of warnings. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set -e TIMEOUT=1200 echo "1..2" rc=0 aptitude i...
Shell
#!/bin/sh -x # # $Id: snapshot-zumastor.sh 786 2007-10-11 03:41:54Z drake.diedrich $ # # Set up sysvg with origin and snapshot store, iterate through a few # snapshots to verify that each is unique and stable when taken. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set...
Shell
#!/bin/sh -x # # $Id: snapshot-ddsnap.sh 789 2007-10-11 11:53:50Z drake.diedrich $ # # Use ddsnap directly to create a snapshot, modify the origin, and create # another snapshot. Verify that checksums change and remain correct. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.co...
Shell
#!/bin/sh -x # # $Id$ # # Boot and install insserv, and make sure zumastor doesn't show up # in its list of warnings. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set -e TIMEOUT=1200 echo "1..2" rc=0 aptitude install -y insserv nfs-kernel-server echo "ok 1 - insserv...
Shell
#!/bin/sh -x # # $Id$ # # Use ddsnap directly to create a snapshot, modify the origin, and create # another snapshot. Verify that checksums change and remain correct. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set -e rc=0 # Terminate test in 10 minutes. Read by ...
Shell
#!/bin/sh -x # # $Id$ # # Set up sysvg with origin and snapshot store, iterate through a few # snapshots to verify that each is unique and stable when taken. # # Copyright 2007 Google Inc. All rights reserved # Author: Drake Diedrich (dld@google.com) set -e # Terminate test in 10 minutes. Read by test harness. TIM...
Shell
#!/bin/sh # # $Id: tunbr-config 673 2007-09-10 20:59:52Z chklin $ # # Source /etc/default/testenv for the VIRT* variables, and output # appropriate compiler flags to build a locally customized tunbr # for the network and interface bridge specified. if [ -x /etc/default/testenv ] then . /etc/default/testenv fi if [ ...
Shell
#!/bin/sh # # $Id$ # # Source /etc/default/testenv for the VIRT* variables, and output # appropriate compiler flags to build a locally customized tunbr # for the network and interface bridge specified. if [ -x /etc/default/testenv ] then . /etc/default/testenv fi if [ "x$VIRTNET" != "x" ] then echo $VIRTNET | \ ...
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol daily done
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol daily done
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol hourly done
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol hourly done
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol weekly done
Shell
#!/bin/bash for vol in $(ls /var/run/zumastor/cron) ; do zumastor snapshot $vol weekly done
Shell
#!/bin/bash # Zumastor Linux Storage Server # Copyright (c) 2006 Google Inc. # Author: Daniel Phillips <phillips@google.com> # Licensed under the GNU GPL version 2 ### BEGIN INIT INFO # Provides: zumastor # Required-Start: $network # Required-Stop: $network # Should-Start: lvm $named # should-Sto...
Shell
#!/bin/bash # Zumastor Linux Storage Server # Copyright (c) 2006 Google Inc. # Author: Daniel Phillips <phillips@google.com> # Licensed under the GNU GPL version 2 ### BEGIN INIT INFO # Provides: zumastor # Required-Start: $network # Required-Stop: $network # Should-Start: lvm $named # should-Sto...
Shell
#!/bin/sh rm /bin/zumastor rm -r /lib/zumastor rm -r /var/lib/zumastor rm -r /var/run/zumastor rm -r /var/log/zumastor rm /etc/cron.hourly/zumastor rm /etc/cron.daily/zumastor rm /etc/cron.weekly/zumastor rm /etc/init.d/zumastor rm -r /etc/zumastor
Shell
#!/bin/sh [ -z "$DESTDIR" ] && DESTDIR=/ rm ${DESTDIR}/lib/zumastor >/dev/null 2>&1 # in case of symlink rm ${DESTDIR}/var/lib/zumastor >/dev/null 2>&1 # in case of symlink rm ${DESTDIR}/var/run/zumastor >/dev/null 2>&1 # in case of symlink rm ${DESTDIR}/etc/zumastor >/dev/null 2>&1 # in case of symlink echo ${DESTD...
Shell
#!/bin/bash . /lib/zumastor/common clear while true; do clear for vol in $(ls $VOLUMES 2>/dev/null); do echo Volume $vol: sock=$SERVERS/$vol size=$(ddsnap status $sock --size) || exit 1 size=$(($size*512)) for host in $(ls $VOLUMES/$vol/targets 2>/dev/null); do echo " Target: $host" sendfile=$VOLUMES/$vol/t...
Shell
#!/bin/sh rm /bin/zumastor rm -r /lib/zumastor rm -r /var/lib/zumastor rm -r /var/run/zumastor rm -r /var/log/zumastor rm /etc/cron.hourly/zumastor rm /etc/cron.daily/zumastor rm /etc/cron.weekly/zumastor rm /etc/init.d/zumastor rm -r /etc/zumastor
Shell