code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
RUTA=/home/ldiaz/svn/promociones/trunk/web/promociones/upload
ARCHIVO=$RUTA/$1
#Nos cambiamos de directorio
cd $RUTA
mysql -u root gw_promo -h localhost < $ARCHIVO
| Shell |
#! /bin/bash
echo "*** querying log"
wget -qO- http://local.httprelay.appspot.com:8080/shortlog | head
echo
echo "*** processing request"
bin/httprelaysrv.py -1 -r http://local.httprelay.appspot.com:8080/ -s http://localhost:8000/
echo "*** getting response"
qtail=$(wget -qO- http://local.httprelay.appspot.com:8080/... | Shell |
#! /bin/sh
commit_message=""
username="francesco.lunetta@gmail.com"
password="uH6fG5Yn9rj6"
if [ $# -eq 1 ]
then
commit_message=$1
fi
svn commit --message "$commit_message" --username $username --password $password | Shell |
#! /bin/sh
commit_message=""
username="francesco.lunetta@gmail.com"
password="uH6fG5Yn9rj6"
if [ $# -eq 1 ]
then
commit_message=$1
fi
svn commit --message "$commit_message" --username $username --password $password | Shell |
#!/bin/bash
# httpclientandroidlib version
HTTPCLIENTANDROIDLIB_VER=1.1.0
# Checkout svn repositories of core/client/cache
svn checkout http://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.2/httpcore/ httpcore
svn checkout http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.1.3/httpclient/ httpcl... | Shell |
#/bin/sh
#cross compile sipxmppserver for pap2v2
make pap2v2_cook CC=/home/lucid/sipxmppgate/pap2v2.build/usr/bin/mipsel-linux-gcc \
MODULE_PATH=/usr/lib/sipxmppserver \
CFLAGS="-I/home/lucid/sipxmppgate/pap2v2.build/include -DDISABLE_GETOPT" \
LDFLAGS="-L/home/lucid/sipxmppgate/pap2v2.build/usr/mipsel-unknown-linu... | Shell |
#! /bin/sh
#
# rcS Call all S??* scripts in /etc/rcS.d in
# numerical/alphabetical order.
#
# Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels@cistron.nl
#
trap "" SIGHUP
PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel
#
# T... | 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/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
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (anymote) 0.1
# Libtool was configured on host timberline.bld.corp.google.com:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 20... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6b
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# ... | 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/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
# Wrapper for compilers which do not understand `-c -o'.
# Copyright 1999, 2000 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 GNU General Public License as published by
# the F... | Shell |
#!/bin/sh
# Before using, you should figure out all the .m4 macros that your
# configure.m4 script needs and make sure they exist in the m4/
# directory.
#
# These are the files that this script might edit:
# aclocal.m4 configure Makefile.in src/config.h.in \
# depcomp config.guess config.sub install-sh missing ... | Shell |
#!/bin/bash
# see the README file for usage etc.
#
# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.6 of 6 September 2010
# Copyright (C) 1996-2010 Julian S... | Shell |
#!/bin/sh
# Bzgrep wrapped for bzip2,
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
## zgrep notice:
## zgrep -- a wrapper around a grep program that decompresses files as needed
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
PATH="/usr/bin:$PATH"; export PA... | Shell |
#!/bin/sh
# Bzmore wrapped for bzip2,
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
PATH="/usr/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*less) more=less ;;
*) more=more ;;
esac
if test "`echo -n a`" = "-n a"; then
# looks like a SysV system:
... | Shell |
#!/bin/bash
# see the README file for usage etc.
#
# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.6 of 6 September 2010
# Copyright (C) 1996-2010 Julian S... | Shell |
#!/bin/sh
# Bzgrep wrapped for bzip2,
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
## zgrep notice:
## zgrep -- a wrapper around a grep program that decompresses files as needed
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
PATH="/usr/bin:$PATH"; export PA... | Shell |
#!/bin/sh
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
# Bzcmp/diff wrapped for bzip2,
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
# gram on compressed files. All options specified are passed
#... | Shell |
#!/bin/sh
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
# Bzcmp/diff wrapped for bzip2,
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
# gram on compressed files. All options specified are passed
#... | Shell |
#!/bin/sh
# Bzmore wrapped for bzip2,
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
PATH="/usr/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*less) more=less ;;
*) more=more ;;
esac
if test "`echo -n a`" = "-n a"; then
# looks like a SysV system:
... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1 2000/09/18 16:26:21 coopercc Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# Th... | Shell |
#!/bin/sh
# Look for program[s] somewhere in $PATH.
#
# Options:
# -s
# Do not print out full pathname. (silent)
# -pPATHNAME
# Look in PATHNAME instead of $PATH
#
# Usage:
# PrintPath [-s] [-pPATHNAME] program [program ...]
#
# Initially written by Jim Jagielski for the Apache configuration mechanism
# (with... | Shell |
#!/bin/sh
#
# USAGE: get-version.sh path/to/expat.h
#
# This script will print Expat's version number on stdout. For example:
#
# $ ./conftools/get-version.sh ./lib/expat.h
# 1.95.3
# $
#
if test $# = 0; then
echo "ERROR: pathname for expat.h was not provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
ex... | Shell |
#!/bin/sh
# Look for program[s] somewhere in $PATH.
#
# Options:
# -s
# Do not print out full pathname. (silent)
# -pPATHNAME
# Look in PATHNAME instead of $PATH
#
# Usage:
# PrintPath [-s] [-pPATHNAME] program [program ...]
#
# Initially written by Jim Jagielski for the Apache configuration mechanism
# (with... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1 2000/09/18 16:26:21 coopercc Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Inc.
timestamp='2006-09-20'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in thi... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Inc.
timestamp='2006-07-02'
# This file is free software; you can redistribute it and/or modify it
# under the terms of th... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#!/bin/sh
#
# USAGE: get-version.sh path/to/expat.h
#
# This script will print Expat's version number on stdout. For example:
#
# $ ./conftools/get-version.sh ./lib/expat.h
# 1.95.3
# $
#
if test $# = 0; then
echo "ERROR: pathname for expat.h was not provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
ex... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#! /bin/sh
# EXPAT TEST SCRIPT FOR W3C XML TEST SUITE
# This script can be used to exercise Expat against the
# w3c.org xml test suite, available from
# http://www.w3.org/XML/Test/xmlts20020606.zip.
# To run this script, first set XMLWF so that xmlwf can be
# found, then set the output directory with OUTPUT.
# Th... | Shell |
#! /bin/sh
# EXPAT TEST SCRIPT FOR W3C XML TEST SUITE
# This script can be used to exercise Expat against the
# w3c.org xml test suite, available from
# http://www.w3.org/XML/Test/xmlts20020606.zip.
# To run this script, first set XMLWF so that xmlwf can be
# found, then set the output directory with OUTPUT.
# Th... | Shell |
#!/bin/bash
function checkresult()
{
if [ $? != "0" ]; then
exit;
fi
}
echo "Compiling the library..."
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Compiling the unittest..."
cd source/cpp/unittest
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Running the unittest..."
./Un... | Shell |
#!/bin/bash
export LD_LIBRARY_PATH=../../../lib/
bin/unittest
| Shell |
#!/bin/bash
export LD_LIBRARY_PATH=../../../lib/
bin/unittest
| Shell |
#!/bin/bash
export LD_LIBRARY_PATH=../../../../../lib/
cd bin
./dummyserver
| Shell |
#!/bin/bash
export LD_LIBRARY_PATH=../../../../../lib/
cd bin
./dummyserver
| Shell |
#!/bin/bash
sudo apt-get install g++ xutils-dev libxml++2.6-dev libxml++2.6-doc
| Shell |
#!/bin/bash
function checkresult()
{
if [ $? != "0" ]; then
exit;
fi
}
echo "Compiling the library..."
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Compiling the dummy server..."
cd source/cpp/sample/dummyserver
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Running the dum... | Shell |
#!/bin/bash
function checkresult()
{
if [ $? != "0" ]; then
exit;
fi
}
echo "Compiling the library..."
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Compiling the unittest..."
cd source/cpp/unittest
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Running the unittest..."
./Un... | Shell |
#!/bin/bash
sudo apt-get install g++ xutils-dev libxml++2.6-dev libxml++2.6-doc
| Shell |
#!/bin/bash
function checkresult()
{
if [ $? != "0" ]; then
exit;
fi
}
echo "Compiling the library..."
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Compiling the dummy server..."
cd source/cpp/sample/dummyserver
make dep > /dev/null
make $* > /dev/null
checkresult
echo "Running the dum... | Shell |
#!/bin/bash
_chk_err ()
{
echo " ERROR "
}
set_slk_version ()
{
if [ ! -x /sbin/installpkg -a ! -x /bin/tar-1.13 ]; then
echo " Using slackware tools ..."
tar xOfv ./src/slackware/a/tar-*tgz bin/tar-1.13 > ./bin/tar-1.13
tar xOfv ./src/slackware/a/pkgtools-*tgz sbin/installpkg > ./bin/installpkg
chmod 755 .... | Shell |
#!/bin/bash
_chk_err ()
{
echo " ERROR "
}
set_slk_version ()
{
if [ ! -x /sbin/installpkg -a ! -x /bin/tar-1.13 ]; then
echo " Using slackware tools ..."
tar xOfv ./src/slackware/a/tar-*tgz bin/tar-1.13 > ./bin/tar-1.13
tar xOfv ./src/slackware/a/pkgtools-*tgz sbin/installpkg > ./bin/installpkg
chmod 755 .... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
if [ "$UID" != "0" ]; then
echo "ERROR: must run as root"
exit 1
fi
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default "
echo ""
echo " To: ./cdtree/slackware "
echo ""
if [ ! "$sets... | Shell |
#!/bin/bash
# $Id$
# edit descriptors
# XXX validate descriptors
# optionaly add authorized_keys
# targz it
__get_desc_val ()
{
echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null
}
__strip_bdot ()
{
n="`echo $1|cut -f2 -d"."`"
echo $n
}
__strip_adot ()
{
n="`echo $1|cut -f1 -d"."`"... | Shell |
#!/bin/sh -e
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist=$wd/tmp/pkglist-$time
. $wd/env
if [ ! "$cksum_file" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
if [ -f "$cksum_file" ]; then
mkdir -p $tmp_pkglist
cp $cksum_file $tmp_pkglist/CHECKSUMS.md5
# strip with result: ... | Shell |
#!/bin/sh -e
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist=$wd/tmp/pkglist-$time
. $wd/env
if [ ! "$cksum_file" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
if [ -f "$cksum_file" ]; then
mkdir -p $tmp_pkglist
cp $cksum_file $tmp_pkglist/CHECKSUMS.md5
# strip with result: ... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
echo " start krdc 0:3 "
if [ ! -f $wd/tmp/hda.img ]; then
qemu-img create -f qcow2 $wd/tmp/hda.img 2G
elif [ ! -f $wd/tmp/hdb.img ]; then
qemu-img create -f qcow2 $wd/tmp/hdb.img 2G
fi
if [ ! -f $wd/nemonico.iso ]; then
echo "ERROR: there is no $wd/nemonico.iso image !!"
exit 1
... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
if [ "$UID" != "0" ]; then
echo "ERROR: must run as root"
exit 1
fi
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default "
echo ""
echo " To: ./cdtree/slackware "
echo ""
if [ ! "$sets... | Shell |
#!/bin/bash
# $Id$
# edit descriptors
# XXX validate descriptors
# optionaly add authorized_keys
# targz it
__get_desc_val ()
{
echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null
}
__strip_bdot ()
{
n="`echo $1|cut -f2 -d"."`"
echo $n
}
__strip_adot ()
{
n="`echo $1|cut -f1 -d"."`"... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
echo " start krdc 0:3 "
if [ ! -f $wd/tmp/hda.img ]; then
qemu-img create -f qcow2 $wd/tmp/hda.img 2G
elif [ ! -f $wd/tmp/hdb.img ]; then
qemu-img create -f qcow2 $wd/tmp/hdb.img 2G
fi
if [ ! -f $wd/nemonico.iso ]; then
echo "ERROR: there is no $wd/nemonico.iso image !!"
exit 1
... | Shell |
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
. /nemonico/BOOT
. /etc/scripts/env
. /etc/scripts/utils.fn
set +eE
if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then
isdhcp=Y
else
ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`"
netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`"
gateway="`ec... | Shell |
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
. /nemonico/BOOT
. /etc/scripts/env
. /etc/scripts/utils.fn
set +eE
if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then
isdhcp=Y
else
ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`"
netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`"
gateway="`ec... | Shell |
# $Id$
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
TERM=linux
export TERM
. /etc/scripts/env
. /etc/scripts/utils.fn
if [ -s "$vp_pass" ]; then
echo " Password for the vault already enterd."
echo " Will disconnect unexpectedly."
else
/getpassword_remote.sh
exit
fi
# vim: ts=2 syn=sh
# profile: end
| Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /nemonico/BOOT
echo $$ > /tmp/getpassword_console.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
if [ "$count" != "0" ]; then
echo "Passphrase do ... | Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /nemonico/BOOT
echo $$ > /tmp/getpassword_console.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
if [ "$count" != "0" ]; then
echo "Passphrase do ... | Shell |
#!/bin/bash
# vim: ts=2 syn=sh
# 1. Load kernel mods
# 2. Load bootnet/sshd
# 3. Get passwd
# 4. Open devices(md,enclayer) , not mount them
# 5. make_key; mkswap
# 6. Mount root, cp /etc/nemonico to initram and do the descriptors
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH
LD_LIBRARY_PATH=/lib... | Shell |
#!/bin/bash
# XXX
ifconfig -a > /dev/urandom
date > /dev/urandom
ls -R /nemonico > /dev/urandom
date > /dev/urandom
date "+%s" > /dev/urandom
cat /proc/diskstats > /dev/urandom
cat /proc/meminfo > /dev/urandom
cat /proc/slabinfo > /dev/urandom
cat /proc/interrupts > /dev/urandom
echo $RANDOM > /dev/urandom
echo $RAN... | Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /nemonico/BOOT
echo $$ > /tmp/getpassword_remote.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
if [ "$count" != "0" ]; then
echo "Passphrase do... | Shell |
#!/bin/bash
# vim: ts=2 syn=sh
# 1. Load kernel mods
# 2. Load bootnet/sshd
# 3. Get passwd
# 4. Open devices(md,enclayer) , not mount them
# 5. make_key; mkswap
# 6. Mount root, cp /etc/nemonico to initram and do the descriptors
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH
LD_LIBRARY_PATH=/lib... | Shell |
#!/bin/bash
# $Id$
#
## Taken from OpenWRT Whiterussian RC5
RESOLV_CONF=/etc/resolv.conf
case "$1" in
deconfig)
ifconfig $interface 0.0.0.0
;;
renew|bound)
ifconfig $interface $ip \
netmask ${subnet:-255.255.255.0} \
broadcast $... | Shell |
#!/bin/bash
# $Id$
#
## Taken from OpenWRT Whiterussian RC5
RESOLV_CONF=/etc/resolv.conf
case "$1" in
deconfig)
ifconfig $interface 0.0.0.0
;;
renew|bound)
ifconfig $interface $ip \
netmask ${subnet:-255.255.255.0} \
broadcast $... | Shell |
#!/bin/bash
# XXX
ifconfig -a > /dev/urandom
date > /dev/urandom
ls -R /nemonico > /dev/urandom
date > /dev/urandom
date "+%s" > /dev/urandom
cat /proc/diskstats > /dev/urandom
cat /proc/meminfo > /dev/urandom
cat /proc/slabinfo > /dev/urandom
cat /proc/interrupts > /dev/urandom
echo $RANDOM > /dev/urandom
echo $RAN... | Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /nemonico/BOOT
echo $$ > /tmp/getpassword_remote.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
if [ "$count" != "0" ]; then
echo "Passphrase do... | Shell |
#!/bin/bash
# $Id$
kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/"
if [ -d $kmoddir ]; then
mkdir -p /lib/modules
ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1
else
echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiting ..."
exit 1
fi
| Shell |
#!/bin/bash
# $Id$
#
. /etc/scripts/env
. /etc/scripts/common.fn
. /etc/scripts/common.disks.fn
. /etc/scripts/vault.fn
. /etc/scripts/disk.fn
. /etc/scripts/lvm.fn
. /etc/scripts/mountpoint.fn
. /etc/scripts/md.fn
. /etc/scripts/enclayer.fn
. /etc/scripts/packages.fn
. /etc/scripts/network.fn
. /etc/scripts/time.fn
.... | Shell |
#!/bin/bash
# $Id$
kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/"
if [ -d $kmoddir ]; then
mkdir -p /lib/modules
ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1
else
echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiting ..."
exit 1
fi
| Shell |
#!/bin/bash
# $Id$
#
. /etc/scripts/env
. /etc/scripts/common.fn
. /etc/scripts/common.disks.fn
. /etc/scripts/vault.fn
. /etc/scripts/disk.fn
. /etc/scripts/lvm.fn
. /etc/scripts/mountpoint.fn
. /etc/scripts/md.fn
. /etc/scripts/enclayer.fn
. /etc/scripts/packages.fn
. /etc/scripts/network.fn
. /etc/scripts/time.fn
.... | Shell |
# $Id$
#
PATH="/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:."
TERM=linux
PS1="["`tty`"] [\h]:# "
PS2="> "
HOME=/root
export PATH DISPLAY TERM PS1 PS2 HOME
umask 022
. /etc/scripts/env
. /etc/scripts/common.fn
. /etc/scripts/common.disks.fn
. /etc/scripts/vault.fn
. /etc/scripts/disk.fn
. /etc/script... | Shell |
#!/bin/sh
# rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation.
#
# Taken from slackware
# This is a function to unload the IEEE1394 (firewire) modules:
ieee1394_stop() {
modprobe -r sbp2 ohci1394
modprobe -r ieee1394
}
# This is a function to attempt to enable a IEEE1394 storage device.... | Shell |
#!/bin/sh
# rc.usb: search for USB devices needed for installation.
#
# Taken from slackware
# This is a function to unload the USB modules:
usb_stop() {
modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \
input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null
umount usbfs 2> /dev/null... | Shell |
#!/bin/sh
# rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation.
#
# Taken from slackware
# This is a function to unload the IEEE1394 (firewire) modules:
ieee1394_stop() {
modprobe -r sbp2 ohci1394
modprobe -r ieee1394
}
# This is a function to attempt to enable a IEEE1394 storage device.... | Shell |
#!/bin/sh
# rc.usb: search for USB devices needed for installation.
#
# Taken from slackware
# This is a function to unload the USB modules:
usb_stop() {
modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \
input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null
umount usbfs 2> /dev/null... | Shell |
#!/bin/bash --login
PATH=/bin:/usr/bin:/sbin:/usr/sbin:.
export PATH
HOME=/root
export HOME
/bin/echo "doing /init ...."
/bin/hostname nemonico
setlogcons 12
# Mount
/bin/mount -v proc /proc -n -t proc
/bin/mount -v sysfs /sys -n -t sysfs
#/bin/mount -t tmpfs -o size=64M mdev /dev
mkdir -p /dev/pts
mount -t devpt... | Shell |
#!/bin/bash --login
PATH=/bin:/usr/bin:/sbin:/usr/sbin:.
export PATH
HOME=/root
export HOME
/bin/echo "doing /init ...."
/bin/hostname nemonico
setlogcons 12
# Mount
/bin/mount -v proc /proc -n -t proc
/bin/mount -v sysfs /sys -n -t sysfs
#/bin/mount -t tmpfs -o size=64M mdev /dev
mkdir -p /dev/pts
mount -t devpt... | Shell |
#!/bin/sh
# $Id$
#
## Taken from OpenWRT Whiterussian RC5
RESOLV_CONF=/etc/resolv.conf
. /etc/scripts/env
case "$1" in
deconfig)
ifconfig $interface 0.0.0.0
;;
renew|bound)
ifconfig $interface $ip \
netmask ${subnet:-255.255.255.0} \
... | Shell |
#!/bin/sh
# $Id$
#
## Taken from OpenWRT Whiterussian RC5
RESOLV_CONF=/etc/resolv.conf
. /etc/scripts/env
case "$1" in
deconfig)
ifconfig $interface 0.0.0.0
;;
renew|bound)
ifconfig $interface $ip \
netmask ${subnet:-255.255.255.0} \
... | Shell |
( cd etc/rc.d; cat rc.local.rng-tools.append >> rc.local )
( cd etc/rc.d; rm -f rc.local.rng-tools.append )
| Shell |
#!/bin/sh
export PATH="/usr/pkg/bin:/usr/X11/bin:${PATH}"
if [ `id -u` -eq "0" ]; then
export PATH="/usr/pkg/sbin:${PATH}"
fi
export MANPATH="/usr/pkg/man:${MANPATH}"
# gcc34
export PATH=/usr/pkg/gcc34/bin:$PATH
| Shell |
#!/bin/sh
export PATH="/usr/pkg/bin:/usr/X11/bin:${PATH}"
if [ `id -u` -eq "0" ]; then
export PATH="/usr/pkg/sbin:${PATH}"
fi
export MANPATH="/usr/pkg/man:${MANPATH}"
# gcc34
export PATH=/usr/pkg/gcc34/bin:$PATH
| Shell |
#!/bin/sh
NEMONICO_ROOT=${NEMONICO_ROOT:-/usr/nemonico}
export NEMONICO_ROOT
if [ "`id -u`" = "0" ]; then
PATH=$NEMONICO_ROOT/bin:$PATH ; export PATH
fi
| Shell |
#!/bin/sh
NEMONICO_ROOT=${NEMONICO_ROOT:-/usr/nemonico}
export NEMONICO_ROOT
if [ "`id -u`" = "0" ]; then
PATH=$NEMONICO_ROOT/bin:$PATH ; export PATH
fi
| Shell |
#!/bin/bash
# $Id$
tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
for device in /dev/hd[a-z]; do
mount -o ro -t iso9660 $device $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
[ ! -L /dev/cdrom ] && ln -s $device /dev/cdrom
echo $device > /var/tmp/cdrom_device
umount $tmpmnt 2>/dev/null
break
else
umount -f $tmpmnt 2>/de... | Shell |
#!/bin/bash
# $Id$
# desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size
# of the device, and to stdout
export syspath=/sys/block
# ex. usblist="sda1 sdb"
export usblist=""
export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
find_dev_m1 ()
{
for l in a b c d e f g h i j k l m n o p q r s t u v w x y z... | Shell |
#!/bin/bash
# $Id$
# desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size
# of the device, and to stdout
export syspath=/sys/block
# ex. usblist="sda1 sdb"
export usblist=""
export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
find_dev_m1 ()
{
for l in a b c d e f g h i j k l m n o p q r s t u v w x y z... | Shell |
#!/bin/bash
# $Id$
tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
for device in /dev/hd[a-z]; do
mount -o ro -t iso9660 $device $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
[ ! -L /dev/cdrom ] && ln -s $device /dev/cdrom
echo $device > /var/tmp/cdrom_device
umount $tmpmnt 2>/dev/null
break
else
umount -f $tmpmnt 2>/de... | Shell |
#!/bin/bash
_chk_err ()
{
echo " ERROR "
}
set_slk_version ()
{
if [ ! -x /sbin/installpkg -a ! -x /bin/tar-1.13 ]; then
echo " Using slackware tools ..."
tar xOfv ./src/slackware/a/tar-*tgz bin/tar-1.13 > ./bin/tar-1.13
tar xOfv ./src/slackware/a/pkgtools-*tgz sbin/installpkg > ./bin/installpkg
chmod 755 .... | Shell |
#!/bin/bash
_chk_err ()
{
echo " ERROR "
}
set_slk_version ()
{
if [ ! -x /sbin/installpkg -a ! -x /bin/tar-1.13 ]; then
echo " Using slackware tools ..."
tar xOfv ./src/slackware/a/tar-*tgz bin/tar-1.13 > ./bin/tar-1.13
tar xOfv ./src/slackware/a/pkgtools-*tgz sbin/installpkg > ./bin/installpkg
chmod 755 .... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default "
echo ""
if [ ! "$sets_location" ]; then
echo " Enter path to where the original slackware sets"
echo -n " are located: "
read se... | Shell |
#!/bin/bash
# $Id$
# edit descriptors
# XXX validate descriptors
# optionaly add authorized_keys
# targz it
__get_desc_val ()
{
echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null
}
__strip_bdot ()
{
n="`echo $1|cut -f2 -d"."`"
echo $n
}
__strip_adot ()
{
n="`echo $1|cut -f1 -d"."`"... | Shell |
#!/bin/sh -e
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist=$wd/tmp/pkglist-$time
. $wd/env
if [ ! "$cksum_file" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
if [ -f "$cksum_file" ]; then
mkdir -p $tmp_pkglist
cp $cksum_file $tmp_pkglist/CHECKSUMS.md5
# strip with result: ... | Shell |
#!/bin/sh -e
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist=$wd/tmp/pkglist-$time
. $wd/env
if [ ! "$cksum_file" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
if [ -f "$cksum_file" ]; then
mkdir -p $tmp_pkglist
cp $cksum_file $tmp_pkglist/CHECKSUMS.md5
# strip with result: ... | Shell |
#!/bin/bash
# notes: XXX qemu burnd one of my cpu`s, lucky me, i bet it was the accelerator :)
# so i use vmware.
wd="`pwd`"
. $wd/env
echo " start krdc 0:3 "
qemu -cdrom /b1/nemonico/nemonico.iso -hda $wd/tmp/nemonico_test.img -boot d -m 256 -vnc 0:3
#qemu -cdrom $wd/nemonico.iso -hda $wd/tmp/nemonico_test.img -boo... | Shell |
#!/bin/bash
wd="`pwd`"
. $wd/env
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default "
echo ""
if [ ! "$sets_location" ]; then
echo " Enter path to where the original slackware sets"
echo -n " are located: "
read se... | Shell |
#!/bin/bash
# $Id$
# edit descriptors
# XXX validate descriptors
# optionaly add authorized_keys
# targz it
__get_desc_val ()
{
echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null
}
__strip_bdot ()
{
n="`echo $1|cut -f2 -d"."`"
echo $n
}
__strip_adot ()
{
n="`echo $1|cut -f1 -d"."`"... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.