Commit 4b053c5e authored by Nico Schottelius's avatar Nico Schottelius

Merge /home/users/nico/cLinux/scripts/install-scripts

parents d78def60 a57b28ce
#!/bin/sh
# cLinux
# Nico Schottelius (nico-linux@schottelius.org)
# 2004-12
#
dd if=/dev/urandom bs=512 count=2 | cryptsetup create swap "$1"
#dd if=/dev/urandom bs=512 count=2 | cryptsetup create swap /dev/hda6
#!/bin/sh
# cLinux
# Nico Schottelius (nico-linux@schottelius.org)
# 2004-12
#
PACKAGES=$@
ALL_PACKAGES=`
#!/bin/sh
#
# Nico Schottelius <nico-linux //@// schottelius.org>
# Date: 13-Mär-2007
# Last Modified: -
# Description: Links files from /usr/packages/$pkg/$dir/* to /usr/local/$dir
#
if [ "$#" -ne 2 ]; then
echo "$0: package (below /usr/packages/) subdir (like bin, lib or include)"
exit 1
fi
basedir="$1"
subdir="$2"
destination=/usr/local
ddir="${destination}/${subdir}"
# test for existence, abort if conflicts are there
do_exit=0
for file in "${basedir}/${subdir}"/*; do
basename=$(basename "$file")
dest="${ddir}/${basename}"
if [ -e "${dest}" ]; then
echo "${dest} already exists, abort"
do_exit=1
fi
done
if [ "$do_exit" = 1 ]; then
exit 1
fi
# link!
for file in "${basedir}/${subdir}"/*; do
ln -s "$file" "$ddir"
done
#!/bin/sh
#
# Nico Schottelius <nico-linux //@// schottelius.org>
# Date: 13-Mär-2007
# Last Modified: -
# Description: Links files from /usr/packages/$pkg/$dir/* to /usr/local/$dir
#
if [ "$#" -ne 2 ]; then
echo "$0: package (below /usr/packages/) subdir (like bin, lib or include)"
exit 1
fi
basedir="$1"
subdir="$2"
destination=/usr/local
ddir="${destination}/${subdir}"
# link!
for file in "${basedir}/${subdir}"/*; do
if [ -f "$file" ]; then
ln "$file" "$ddir"
else
# directory
ln -s "$file" "$ddir"
fi
done
#!/bin/sh
# cLinux
# Nico Schottelius (nico-linux@schottelius.org)
# 2004-12-29
# create swap devices from $argv
i=0
for i in devices ...
crypt-dev.rand.key "$1"
###dd if=/dev/urandom bs=512 count=2 | cryptsetup create swap "$1"
####dd if=/dev/urandom bs=512 count=2 | cryptsetup create swap /dev/hda6
#!/bin/sh
#
# Nico Schottelius <nico-linux@schottelius.org>
# Date: 09-Nov-2005
# Last Modified: -
#
find "$1" -type d -exec chmod 0770 {} \;
find "$1" -type f -exec chmod u+rw,g+rw,o-rwx {} \;
#!/bin/sh
#
# Nico Schottelius <nico-linux@schottelius.org>
# Date: 09-Nov-2005
# Last Modified: -
#
find "$1" -exec chmod og-rwx {} \;
#!/bin/sh
#
# Nico Schottelius <nico-linux@schottelius.org>
# Date: 09-Nov-2005
# Last Modified: -
#
find "$1" -type d -exec chmod 0755 {} \;
find "$1" -type f -exec chmod a+r {} \;
#!/bin/sh
# cLinux
# Nico Schottelius (nico-linux@schottelius.org)
# 2004-12
#
hdparm -z $1
#!/bin/sh
# Nico Schottelius (nico-linux@schottelius.org)
# 2004-12
#
hdparm -d1 -c1 $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment