#!/bin/sh # This script applies Colibrí's configuration to a Knoppix image # using the knoppix-custimize utility. # # This script was made by Alejandro Forero Cuervo # based on input from Cinxgler Mariaca . # # Run this script passing the path of your image as its only argument. # Make sure knoppix-customize can be found in your PATH. ############################################################################### # Make sure the specify the Knoppix image to operate in if test "$#" != "1"; then { echo "Usage: $0 IMAGE" exit 1; } fi; SRC="http://bachue.com/colibri/linux/knoppix/customize/"; TMP="/tmp/knoppix-colibri-customize/"; # Make sure knoppix-customize can be found if test "`which knoppix-customize`" = ""; then { knoppix-customize; exit 1; } fi; mkdir $TMP || exit 1; for file in logo.16 german.kbd boot.msg syslinux.cfg; do if ! wget -qc "$SRC$file" -o "$TMP$file"; then echo "$SRC$file: wget failed" ; exit 1; fi; knoppix-customize --action import_file --image "$1" --local_file "$TMP$file" --image_file "$file"; done; rm -Rf $TMP || exit 1;