code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash -x
# $Id$
# desc: a little tool to create many virtual disks
nd=20 # number of disks
vmname=TEST0 # name of host
dsize=20000 # size of disks
n=1
while true ; do
n=$((${n}+1))
VBoxManage createhd --filename ${vmname}_${n}.vdi --format VDI --size $dsize
[ "$n" -eq "$nd" ] && exit
done
# vim: ts=4 syn=s... | Shell |
#!/bin/bash
# $Id$
wd="`pwd`"
. $wd/env
if [ "$UID" != "0" ]; then
echo "ERROR: must run as root"
exit 1
fi
echo ""
echo " For Slackware $slackware_version"
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/mostaza/files/packages/pkglist/default "
echo "... | Shell |
#!/bin/bash
# $Id$
wd=`pwd`
if [ -d $wd/files ]; then
. $wd/files/env
. $wd/files/common-scripts/common.fn
. $wd/files/common-scripts/common.disks.fn
. $wd/files/common-scripts/boot.fn
misc_files_dir=$wd/files/installcd-initrd/$misc_files_dir
else
. $(dirname $0)/tools/autoinstall/env
. $(dirname $0)/tools/aut... | Shell |
#!/bin/sh -xe
# $Id$
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/build-auxbuildroot cpfiles 2>&1 | tee ./tmp/build.log
./bin/bui... | Shell |
#!/bin/bash
# $Id$
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init gentoo-files/installcd-initrd/etc/scripts/ gentoo-files/installcd-initrd/etc/scripts/gui gentoo-files/host-initram/etc/s... | Shell |
#!/bin/bash
# param: 1:keyname 2:size
if [ $# -lt 2 ]; then
echo "param: 1:keyname 2:size"
exit 1
fi
rm -f $1
dd if=/dev/urandom of=$1 count=$((${2}/8)) bs=1
| Shell |
#!/bin/bash -x
# $Id$
# desc: a little tool to create many virtual disks
nd=20 # number of disks
vmname=TEST0 # name of host
dsize=20000 # size of disks
n=1
while true ; do
n=$((${n}+1))
VBoxManage createhd --filename ${vmname}_${n}.vdi --format VDI --size $dsize
[ "$n" -eq "$nd" ] && exit
done
# vim: ts=4 syn=s... | Shell |
#!/bin/bash
# $Id: qemu_test.sh 636 2010-01-17 17:19:29Z ant_code $
wd="`pwd`"
. $wd/env
DSKSZ="20G"
# root
if [ "$UID" != "0" ]; then
echo "Must run as root!! "
exit 1
fi
if [ ! -f $wd/tmp/hda.img ]; then
qemu-img create -f qcow2 $wd/tmp/hda.img $DSKSZ
fi
if [ ! -f $wd/tmp/hdb.img ]; then
qemu-img create -f qc... | Shell |
#!/bin/bash
# $Id: ls-tags.sh 702 2010-06-21 06:42:09Z ant_code $
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init nemo_pkg/nemo/lib/nemo/libexec gentoo-files/installcd-initrd/etc/scripts ... | Shell |
#!/bin/sh -xe
# $Id: after-changes-dsktool.sh 678 2010-03-02 20:38:39Z ant_code $
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/bu... | Shell |
#!/bin/bash
# $Id: mk-installer_update_tar_gz.sh 711 2010-07-22 21:45:36Z ant_code $
. ./files/env
. ./files/buildscripts.fn
echo "auxbuild must have been created before running this ..."
sleep 3
set -ex
./bin/build-installcd
cd $wd/$auxbuildroot_dir/$installcdinitrd_build_dir
tar --exclude=".svn" --exclude="*~" --... | Shell |
#!/bin/sh
# $Id: gen-packages.sh 524 2009-08-05 22:50:08Z ant_code $
# taken from slapt-get FAQ
#DL_URL=http://your_remove_pkg_host.tld/packages/
# 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 Found... | Shell |
#!/bin/bash
# $Id: find-func.sh 711 2010-07-22 21:45:36Z ant_code $
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init gentoo-files/installcd-initrd/etc/scripts/ gentoo-files/installcd-initr... | Shell |
#!/bin/sh -xe
# $Id: after-changes.sh 704 2010-07-13 22:06:12Z ant_code $
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/build-auxb... | Shell |
#!/bin/bash -x
# $Id$
# desc: a little tool to create many virtual disks
nd=20 # number of disks
vmname=TEST0 # name of host
dsize=60 # size of disks
n=1
while true ; do
n=$(($n+1))
vmware-vdiskmanager -c -s ${dsize}GB -a buslogic -t 0 TEST0_${i}.vmdk
[ $n -eq $nd ] && exit
done
# vim: ts=4 syn=sh
# end: mk-vmwa... | Shell |
#!/bin/sh
PATH=$PATH:/lib/dsktool/bin: ; export PATH
| Shell |
#!/bin/sh
PATH=$PATH:/lib/dsktool/bin: ; export PATH
| Shell |
#!/bin/sh
. /lib/dsktool/conf/env
sed -i /lib/dsktool/lib/gui/gui.fn -e "s/##VERSION##/$mostaza_version/g"
| Shell |
#!/bin/sh
. /lib/dsktool/conf/env
sed -i /lib/dsktool/lib/gui/gui.fn -e "s/##VERSION##/$mostaza_version/g"
| Shell |
# $Id: bashrc 703 2010-06-25 02:48:27Z ant_code $
#
PATH="/sbin:/usr/sbin:/usr/bin:/bin:/etc/scripts:/lib/dsktool/bin:."
TERM=linux
PS1="["`tty`"] [\h]:# "
PS2="> "
HOME=/root
export PATH DISPLAY TERM PS1 PS2 MANPATH HOME
umask 032
# common.disks.fn:verify
export DISKS_DONE=
. /lib/dsktool/conf/env
. /lib/dsktool/l... | Shell |
#!/bin/bash
# $Id: network.wired 633 2010-01-17 17:12:21Z ant_code $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
. /mostaza/BOOT
. /etc/scripts/env
. /etc/scripts/utils.fn
. /etc/scripts/boot.fn
set +eE
if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then
isdhcp=Y
else
ip="`echo $BOOT_NET_INTERFACE | cut ... | Shell |
#!/bin/bash
# $Id$
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
. /mostaza/BOOT
. /etc/scripts/env
. /etc/scripts/utils.fn
. /etc/scripts/boot.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 | ... | Shell |
# $Id: profile 678 2010-03-02 20:38:39Z ant_code $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
export PATH
TERM=linux
export TERM
. /etc/scripts/env
. /etc/scripts/utils.fn
. /etc/scripts/boot.fn
if [ -s "$vp_pass" ]; then
echo " Password for the vault already enterd."
echo " Will disconnect unexpectedly."
else
/get... | Shell |
#!/bin/bash
# $Id: getpassword_console.sh 633 2010-01-17 17:12:21Z ant_code $
. /etc/scripts/env
. /etc/scripts/utils.fn
. /mostaza/BOOT
echo $$ > /tmp/getpassword_console.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
... | Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /mostaza/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 n... | Shell |
#!/bin/bash
# $Id$
# vim: ts=2 syn=sh
# desc: host-initram/init for slackware
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib ; export LD_LIBRARY_PATH
set -eE
_chk_err ()
{
local count
echo " ERROR: 6 beeps/seconds then reboot."
while true; do
... | Shell |
#!/bin/bash
# $Id$
# XXX is it any good ?
ifconfig -a > /dev/urandom
date > /dev/urandom
ls -R /mostaza > /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
| Shell |
#!/bin/bash
# $Id$
. /etc/scripts/env
. /etc/scripts/utils.fn
. /mostaza/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: init 717 2010-08-20 14:24:59Z ant_code $
# vim: ts=2 syn=sh
# desc: host-initram/init for slackware
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib ; export LD_LIBRARY_PATH
set -eE
_chk_err ()
{
local count
echo " ERROR: 6 beeps/s... | Shell |
#!/bin/bash
# $Id: default.script 678 2010-03-02 20:38:39Z ant_code $
#
## 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 ${s... | 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: entropy_generator.sh 633 2010-01-17 17:12:21Z ant_code $
# XXX is it any good ?
ifconfig -a > /dev/urandom
date > /dev/urandom
ls -R /mostaza > /dev/urandom
date > /dev/urandom
date "+%s" > /dev/urandom
cat /proc/diskstats > /dev/urandom
cat /proc/meminfo > /dev/urandom
cat /proc/slabinfo > /dev/ur... | Shell |
#!/bin/bash
# $Id: getpassword_remote.sh 633 2010-01-17 17:12:21Z ant_code $
. /etc/scripts/env
. /etc/scripts/utils.fn
. /mostaza/BOOT
echo $$ > /tmp/getpassword_remote.sh.pid
count=0
pass1="0"
while [ "$pass1" != "$pass2" ]; do
if [ "$count" = "3" ]; then
echo "Reboot ..."
reboot
fi
... | Shell |
#!/bin/bash
# $Id: make-kernel-links.sh 550 2009-08-30 04:58:36Z ant_code $
kmoddir="/medium/kernel-modules/lib/modules/$(uname -r)/"
if [ -d $kmoddir ]; then
mkdir -p /lib/modules
rm -f /lib/modules/"$(uname -r)"
ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1
elif [ ! -d /lib/modules/$(uname -r) ]; then
... | Shell |
#!/bin/bash
# $Id$
# wget update_tar
# mktmpdir; unzip
# tar list; cp from list local files; save
# untar update
# prompt for new screen
. /etc/scripts/env
. /etc/scripts/common.fn
tmpdowndir="$(mktemp -d /tmp/tmp.XXXXXX)"
tmptestdir="$(mktemp -d /tmp/tmp.XXXXXX)"
source_addr="http://sourceforge.net/projects/nemoni... | Shell |
#!/bin/bash
# $Id$
kmoddir="/medium/kernel-modules/lib/modules/$(uname -r)/"
if [ -d $kmoddir ]; then
mkdir -p /lib/modules
rm -f /lib/modules/"$(uname -r)"
ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1
elif [ ! -d /lib/modules/$(uname -r) ]; then
echo " ERROR: Did not found a kernel modules directory o... | Shell |
#!/bin/bash
# $Id: installer_update.sh 715 2010-07-30 04:46:54Z ant_code $
# wget update_tar
# mktmpdir; unzip
# tar list; cp from list local files; save
# untar update
# prompt for new screen
. /etc/scripts/env
. /etc/scripts/common.fn
tmpdowndir="$(mktemp -d /tmp/tmp.XXXXXX)"
tmptestdir="$(mktemp -d /tmp/tmp.XXXX... | Shell |
# $Id: profile 703 2010-06-25 02:48:27Z ant_code $
#
# for sshd
PATH="/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:/etc/scripts:."
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.... | Shell |
#!/bin/sh
# rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation.
#
# Taken from slackware 12, here for reference
# 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 ... | Shell |
#!/bin/sh
# This is a script to initialize udev, which populates the /dev
# directory with device nodes, scans for devices, loads the
# appropriate kernel modules, and configures the devices.
#
# Taken from slackware 12.2, with some mods :)
#
PATH="/sbin:/bin:/usr/sbin:/usr/bin:"
OPT=""
. /etc/udev/udev.conf
# remo... | Shell |
#!/bin/sh
# rc.usb: search for USB devices needed for installation.
#
# Taken from slackware 12, here for reference
# 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
um... | Shell |
#!/bin/sh
# rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation.
#
# Taken from slackware 12, here for reference
# 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 ... | Shell |
#!/bin/sh
# This is a script to initialize udev, which populates the /dev
# directory with device nodes, scans for devices, loads the
# appropriate kernel modules, and configures the devices.
#
# Taken from slackware 12.2, with some mods :)
#
PATH="/sbin:/bin:/usr/sbin:/usr/bin:"
OPT=""
. /etc/udev/udev.conf
# remo... | Shell |
#!/bin/sh
# rc.usb: search for USB devices needed for installation.
#
# Taken from slackware 12, here for reference
# 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
um... | Shell |
#!/bin/bash
# $Id$
PATH=/bin:/usr/bin:/sbin:/usr/sbin:.
export PATH
HOME=/root
export HOME
/bin/echo "/init ...."
/bin/hostname mostaza
# 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 devpts devpts /dev/pts
mdev... | Shell |
#!/bin/bash
# $Id: init 718 2010-08-24 03:14:54Z ant_code $
PATH=/bin:/usr/bin:/sbin:/usr/sbin:.
export PATH
HOME=/root
export HOME
/bin/echo "/init ...."
/bin/hostname mostaza
# 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/... | Shell |
#!/bin/sh
# $Id: default.script 678 2010-03-02 20:38:39Z ant_code $
#
## 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 \
... | 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
#
# Taken from: http://fasmz.org/~pterjan/qemu-ifup
#
# Sample /etc/qemu-ifup to have bridged networking between qemu instances and your real net
# You need "youruser ALL=(root) NOPASSWD: /etc/qemu-ifup" in /etc/sudoers
# You also need enough rights on /dev/tun
if [ $UID -ne 0 ]
then
sudo $0 $1
exit
fi
/sbi... | Shell |
#! /bin/sh -
RCSID='$Id$'
# Copied from Slackware
#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
# Customisation:
# The devices fall into various classes. This section contains the mapping
# from a class name into a group name and permission.
# You will almost certainly need to ed... | Shell |
#!/bin/bash -e
# $Id$
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
if [ -n "$SYS_EMERGE" ]; then
emerge -q $SYS_EMERGE
fi
# vim: ts=2 syn=sh
# portage_sys_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id$
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
if [ -n "$USR_EMERGE" ]; then
emerge -q $USR_EMERGE
fi
# vim: ts=2 syn=sh
# portage_usr_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id$
# param: 1: installer / autoinstall
env-update
source /etc/profile
# -ver-
source /gentoo_tmp/env # static values that are changed at runtime are not reflected here, hence control files ?
source /gentoo_tmp/common.fn
source /gentoo_tmp/BOOT
cd /usr/src/linux-${KERNELVERSION}
if [ "$1" = "autoin... | Shell |
#!/bin/bash -e
# $Id: portage_nemo_emerge.sh 678 2010-03-02 20:38:39Z ant_code $
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
emerge encdb nemo nemo-initram
# vim: ts=2 syn=sh
# portage_nemo_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id$
env-update
source /etc/profile
emerge --sync
emerge --quiet --update --deep --newuse world
# vim: ts=2 syn=sh
# portage_update.sh: end
| Shell |
#!/bin/bash -e
# $Id$
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
for rc in $RCUPDATEADD ; do
rc-update add $rc default
done
# vim: ts=2 syn=sh
# rcupdate.sh: end
| Shell |
#!/bin/bash -e
# $Id: portage_nemo_emerge.sh 678 2010-03-02 20:38:39Z ant_code $
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
emerge encdb nemo nemo-initram
# vim: ts=2 syn=sh
# portage_nemo_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id: portage_sys_emerge.sh 716 2010-08-03 06:24:13Z ant_code $
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
if [ -n "$SYS_EMERGE" ]; then
emerge -q $SYS_EMERGE
fi
# vim: ts=2 syn=sh
# portage_sys_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id: portage_update.sh 716 2010-08-03 06:24:13Z ant_code $
env-update
source /etc/profile
emerge --sync
emerge --quiet --update --deep --newuse world
# vim: ts=2 syn=sh
# portage_update.sh: end
| Shell |
#!/bin/bash -e
# $Id: rcupdate.sh 704 2010-07-13 22:06:12Z ant_code $
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
for rc in $RCUPDATEADD ; do
rc-update add $rc default
done
# vim: ts=2 syn=sh
# rcupdate.sh: end
| Shell |
#!/bin/bash -e
# $Id: portage_usr_emerge.sh 716 2010-08-03 06:24:13Z ant_code $
env-update
source /etc/profile
source /gentoo_tmp/PACKAGES
if [ -n "$USR_EMERGE" ]; then
emerge -q $USR_EMERGE
fi
# vim: ts=2 syn=sh
# portage_usr_emerge.sh: end
| Shell |
#!/bin/bash -e
# $Id: install_kernel.sh 717 2010-08-20 14:24:59Z ant_code $
# param: 1: installer / autoinstall
env-update
source /etc/profile
# -ver-
source /gentoo_tmp/env # static values that are changed at runtime are not reflected here, hence control files ?
source /gentoo_tmp/common.fn
source /gentoo_tmp/BOOT
... | Shell |
if [ ! "$(grep -E "*.rngd.*" $install_root/etc/rc.d/rc.local)" ]; then
( cd /etc/rc.d; cat rc.local.rng-tools.append >> rc.local )
( cd etc/rc.d; rm -f rc.local.rng-tools.append )
fi
exit 0
| Shell |
#!/bin/sh
NEMO_ROOT=${NEMO_ROOT:-/lib/nemo}
export NEMO_ROOT
if [ "`id -u`" = "0" ]; then
PATH=$NEMO_ROOT/bin:$PATH ; export PATH
fi
| Shell |
#!/bin/sh
NEMO_ROOT=${NEMO_ROOT:-/lib/nemo}
export NEMO_ROOT
if [ "`id -u`" = "0" ]; then
PATH=$NEMO_ROOT/bin:$PATH ; export PATH
fi
| Shell |
#!/bin/bash -ex
wd=`pwd`
echo '
## Use SSH with CVS
export CVS_RSH=ssh
## Location of the self-compiled binary packages
export PKG_PATH=file:///var/tmp/packages/All
## Added for pkgsrc installed packages
export PATH="${PATH}:/usr/pkg/bin"
if [ `id -u` -eq 0 ]; then
export PATH="${PATH}:/usr/pkg/sbin"
fi
export M... | Shell |
#!/bin/bash -ex
wd=`pwd`
echo '
## Use SSH with CVS
export CVS_RSH=ssh
## Location of the self-compiled binary packages
export PKG_PATH=file:///var/tmp/packages/All
## Added for pkgsrc installed packages
export PATH="${PATH}:/usr/pkg/bin"
if [ `id -u` -eq 0 ]; then
export PATH="${PATH}:/usr/pkg/sbin"
fi
export M... | Shell |
#!/bin/sh
#
# Taken from: http://fasmz.org/~pterjan/qemu-ifup
#
# Sample /etc/qemu-ifup to have bridged networking between qemu instances and your real net
# You need "youruser ALL=(root) NOPASSWD: /etc/qemu-ifup" in /etc/sudoers
# You also need enough rights on /dev/tun
if [ $UID -ne 0 ]
then
sudo $0 $1
exit
fi
/sbi... | Shell |
#! /bin/sh -
RCSID='$Id: MAKEDEV 679 2010-03-03 03:25:00Z ant_code $'
# Copied from Slackware
#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
# Customisation:
# The devices fall into various classes. This section contains the mapping
# from a class name into a group name and permissi... | Shell |
#!/bin/bash
# $Id$
tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
if [ -L /dev/cdrom ]; then
mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
echo /dev/cdrom > /var/tmp/cdrom_device
umount -f $tmpmnt 2>/dev/null
exit 0
fi
fi
for device in /dev/hd[a-z]; do
mount -o ro -t iso9660 $device ... | Shell |
#!/bin/bash
# $Id$
# desc: output /var/tmp/usb_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)"
# notes: needs lsscsi
find_dev ()
{
if [ -d /mostaza ]; then
mdev -s
f... | Shell |
#!/bin/bash
# $Id: lookfor-sd-devs.sh 635 2010-01-17 17:15:08Z ant_code $
# desc: output /var/tmp/usb_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)"
# notes: needs lssc... | Shell |
#!/bin/bash
# $Id: lookfor-cdrom.sh 347 2009-02-08 09:19:42Z ant_code $
tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`"
if [ -L /dev/cdrom ]; then
mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
echo /dev/cdrom > /var/tmp/cdrom_device
umount -f $tmpmnt 2>/dev/null
exit 0
fi
fi
for device... | Shell |
#!/bin/bash
# $Id: aasp_mon.sh 717 2010-08-20 14:24:59Z ant_code $
# bashrc should be sourced
if [[ "$running_mode" =~ installer|autoinstall ]]; then
. $scripts_dir/env
else
. /lib/dsktool/conf/env
fi
. $scripts_dir/common.fn
. $scripts_dir/vault.fn
date "+%s" > /var/tmp/aasp_timer
while true; do
if [ /var/tmp/aas... | Shell |
#!/bin/bash
# $Id$
tmpmnt="$(mktemp -d /tmp/tmp.XXXXXX)"
if [ -L /dev/cdrom ]; then
mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
echo /dev/cdrom > /var/tmp/cdrom_device
umount -f $tmpmnt 2>/dev/null
exit 0
fi
fi
for device in /dev/hd[a-z]; do
mount -o ro -t iso9660 $device... | Shell |
#!/bin/bash
# $Id$
# desc: output /var/tmp/usb_sd[a-z][0-9] as text file, in it desc and size
# of the device, and to stdout
# notes: requires: lsscsi, /sys etc ...
export syspath=/sys/block
# ex. usblist="sda1 sdb"
export usblist=""
export tmpmnt="$(mktemp -d /tmp/tmp.XXXXXX)"
find_dev ()
{
if [ -d /mostaza ];... | Shell |
#!/bin/bash
# $Id$
# bashrc should be sourced
if [[ "$running_mode" =~ installer|autoinstall ]]; then
. $scripts_dir/env
else
. /lib/dsktool/conf/env
fi
. $scripts_dir/common.fn
. $scripts_dir/vault.fn
date "+%s" > /var/tmp/aasp_timer
while true; do
if [ /var/tmp/aasp_timer ]; then
t1="$(</var/tmp/aasp_timer)"
... | Shell |
#!/bin/bash
# $Id: lookfor-sd-devs.sh 704 2010-07-13 22:06:12Z ant_code $
# desc: output /var/tmp/usb_sd[a-z][0-9] as text file, in it desc and size
# of the device, and to stdout
# notes: requires: lsscsi, /sys etc ...
export syspath=/sys/block
# ex. usblist="sda1 sdb"
export usblist=""
export tmpmnt="$(mktemp -... | Shell |
#!/bin/bash
# $Id: lookfor-cdrom.sh 704 2010-07-13 22:06:12Z ant_code $
tmpmnt="$(mktemp -d /tmp/tmp.XXXXXX)"
if [ -L /dev/cdrom ]; then
mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null
if [ $? = 0 ]; then
echo /dev/cdrom > /var/tmp/cdrom_device
umount -f $tmpmnt 2>/dev/null
exit 0
fi
fi
for devic... | Shell |
#!/bin/bash
# $Id: MAKECD 659 2010-02-14 19:41:46Z ant_code $
set -eETa
set -o pipefail
. ./files/env
. ./files/buildscripts.fn
trap '_chk_err' 1 2 3 15 ERR # not very usefull, but
export -f _chk_err
make_cd ()
{
./bin/clean-all
./bin/mk-dir-struct.sh
./bin/fetch-src
non_slackware_build # if build host is not sla... | Shell |
#!/bin/bash
# $Id$
set -eETa
set -o pipefail
. ./files/env
. ./files/buildscripts.fn
trap '_chk_err' 1 2 3 15 ERR # not very usefull, but
export -f _chk_err
make_cd ()
{
./bin/clean-all
./bin/mk-dir-struct.sh
./bin/fetch-src
non_slackware_build # if build host is not slackware
./bin/build-auxbuildroot
./bin/b... | Shell |
#!/bin/bash
# $Id: cp-slackware-sets.sh 636 2010-01-17 17:19:29Z ant_code $
wd="`pwd`"
. $wd/env
if [ "$UID" != "0" ]; then
echo "ERROR: must run as root"
exit 1
fi
echo ""
echo " For Slackware $slackware_version"
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/install... | Shell |
#!/bin/bash
# $Id: prepare_autoinstall.sh 661 2010-02-19 07:19:52Z ant_code $
# edit descriptors
# validate descriptors
# optionaly add authorized_keys
# targz it
wd=`pwd`
if [ -d $wd/files ]; then
. $wd/files/env
. $wd/files/common-scripts/common.fn
. $wd/files/common-scripts/common.disks.fn
misc_files_dir=$wd... | Shell |
#!/bin/sh -e
# $Id: mk-pkglist-from-cksum.sh 636 2010-01-17 17:19:29Z ant_code $
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist="$(mktemp -d -p $wd/tmp pkglist.XXXXXX)"
. $wd/env
if [ ! -f "$1" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
cksum_file=${1:-$cksum_file}
if [ -f "... | Shell |
#!/bin/sh
# $Id$
# taken from slapt-get FAQ
#DL_URL=http://your_remove_pkg_host.tld/packages/
# 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
# any la... | Shell |
#!/bin/sh -xe
# $Id$
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/build-auxbuildroot cpfiles 2>&1 | tee ./tmp/build.log
./bin/bui... | Shell |
#!/bin/bash
# $Id$
wd="`pwd`"
. $wd/env
set -ex
echo "auxbuild must have been created before running this ..."
sleep 3
./bin/build-auxbuildroot cpfiles
./bin/build-auxbuildroot setperms
chroot $auxbuildroot_dir BIN/build-installcd tree
chroot $auxbuildroot_dir BIN/build-installcd setperms
./bin/build-installcd dels... | Shell |
#!/bin/bash
# $Id$
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init nemo_pkg/nemo/lib/nemo/libexec"
[ ! "$1" ] && { echo "1: common, nemoind, slkver"; exit 1;}
for o in $obj_list ; do
... | Shell |
#!/bin/sh -e
# $Id$
wd="`pwd`"
time="`date "+%s"`"
tmp_pkglist="$(mktemp -d -p $wd/tmp pkglist.XXXXXX)"
. $wd/env
if [ ! -f "$1" ]; then
echo ""
echo -n " Enter path to the CHECKSUMS.md5 file: "
read cksum_file
fi
cksum_file=${1:-$cksum_file}
if [ -f "$cksum_file" ]; then
cp $cksum_file $tmp_pkglist/CHECKSUMS.... | Shell |
#!/bin/bash
# $Id$
wd="`pwd`"
. $wd/env
DSKSZ="20G"
# root
if [ "$UID" != "0" ]; then
echo "Must run as root!! "
exit 1
fi
if [ ! -f $wd/tmp/hda.img ]; then
qemu-img create -f qcow2 $wd/tmp/hda.img $DSKSZ
fi
if [ ! -f $wd/tmp/hdb.img ]; then
qemu-img create -f qcow2 $wd/tmp/hdb.img $DSKSZ
fi
if [ ! -f $wd/tmp/s... | Shell |
#!/bin/bash
# $Id$
wd="`pwd`"
. $wd/env
if [ "$UID" != "0" ]; then
echo "ERROR: must run as root"
exit 1
fi
echo ""
echo " For Slackware $slackware_version"
echo ""
echo " This script will copy all packages that appear listed in: "
echo " ./files/installcd-initrd/mostaza/files/packages/pkglist/default "
echo "... | Shell |
#!/bin/bash
# $Id$
# edit descriptors
# validate descriptors
# optionaly add authorized_keys
# targz it
wd=`pwd`
if [ -d $wd/files ]; then
. $wd/files/env
. $wd/files/common-scripts/common.fn
. $wd/files/common-scripts/common.disks.fn
misc_files_dir=$wd/files/installcd-initrd/$misc_files_dir
else
. $(dirname $... | Shell |
#!/bin/sh -xe
# $Id$
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/build-auxbuildroot cpfiles 2>&1 | tee ./tmp/build.log
./bin/bui... | Shell |
#!/bin/bash
# $Id$
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init"
[ ! "$1" ] && { echo "1:{functionname|all} 2:{all,common,installcd,host}"; exit 1;}
case "$2" in
"all")
for o in $... | Shell |
#!/bin/bash
# $Id: qemu_test.sh 636 2010-01-17 17:19:29Z ant_code $
wd="`pwd`"
. $wd/env
DSKSZ="20G"
# root
if [ "$UID" != "0" ]; then
echo "Must run as root!! "
exit 1
fi
if [ ! -f $wd/tmp/hda.img ]; then
qemu-img create -f qcow2 $wd/tmp/hda.img $DSKSZ
fi
if [ ! -f $wd/tmp/hdb.img ]; then
qemu-img create -f qc... | Shell |
#!/bin/bash
# $Id: ls-tags.sh 638 2010-01-19 01:18:05Z ant_code $
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init nemo_pkg/nemo/lib/nemo/libexec"
[ ! "$1" ] && { echo "1: common, nemoind... | Shell |
#!/bin/sh -xe
# $Id: after-changes-dsktool.sh 678 2010-03-02 20:38:39Z ant_code $
# This is for devel use.
# After changing stuff in files/installcd-initrd and files/host-initram
# and then creating the initrams for testing.
. files/env
wd="`pwd`"
set -Ee
./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/bu... | Shell |
#!/bin/bash
# $Id: mk-installer_update_tar_gz.sh 636 2010-01-17 17:19:29Z ant_code $
wd="`pwd`"
. $wd/env
set -ex
echo "auxbuild must have been created before running this ..."
sleep 3
./bin/build-auxbuildroot cpfiles
./bin/build-auxbuildroot setperms
chroot $auxbuildroot_dir BIN/build-installcd tree
chroot $auxbui... | Shell |
#!/bin/sh
# $Id: gen-packages.sh 524 2009-08-05 22:50:08Z ant_code $
# taken from slapt-get FAQ
#DL_URL=http://your_remove_pkg_host.tld/packages/
# 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 Found... | Shell |
#!/bin/bash
# $Id: find-func.sh 531 2009-08-14 17:20:07Z ant_code $
wd=$PWD
obj_list="common-scripts common-scripts/gui installcd-initrd/init installcd-initrd/etc/scripts installcd-initrd/etc/scripts/gui host-initram/etc/scripts host-initram/init"
[ ! "$1" ] && { echo "1:{functionname|all} 2:{all,common,installcd,ho... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.