#!/bin/sh # Author: Didier Spaier, Paris, France # # Before running this script, adapt MIRROR* and SLINTREPO below to your # installation. # CWD=$(pwd) SLACKVERSION="14.2" SLINTVERSION="14.2" usage() { printf %b "Usage: $0 32|64\n" exit } if [ $# -ne 1 ]; then usage; fi if [ $1 -ne 32 ] && [ $1 -ne 64 ]; then usage; fi if [ $1 -eq 32 ]; then MIRRORSALIX=/storage/salix/i486/$SLACKVERSION/salix MIRROREXTRA=/storage/salix/i486/extra-$SLACKVERSION/salix else MIRRORSALIX=/storage/salix/i486/$SLACKVERSION/salix MIRROREXTRA=/storage/salix/x86_64/extra-$SLACKVERSION/salix fi SFX=$(echo $1|grep 64) SLINTREPO=../.. MIRRORSLACKWARE=/storage/slackware${SFX}-$SLACKVERSION DATESTAMP=`date +%Y%m%d` #if [ ! $UID -eq 0 ]; then # printf "%b" "Please execute this script as root.\n" # exit #fi ISO=/tmp/iso$SFX rm -rf $ISO mkdir -p $ISO/slint/locales # First step install the packages and write the metadata # ====================================================== # printf "%b" "Install the Slackware packages...\n" # packages under slackware/ but in kdei/ for i in $(