#!/bin/bash [ -f config/kanotix ] && . config/kanotix usage() { cat <config/kanotix << EOF # config/kanotix - additional options for Kanotix # \$LB_KANOTIX_TMPFS: use tmpfs to build # (Default: ${LB_KANOTIX_TMPFS}) LB_KANOTIX_TMPFS="${LB_KANOTIX_TMPFS}" # \$LB_KANOTIX_TMPFS_OPTIONS: options for tmpfs # (Default: ${LB_KANOTIX_TMPFS_OPTIONS}) LB_KANOTIX_TMPFS_OPTIONS="${LB_KANOTIX_TMPFS_OPTIONS}" # \$LB_KANOTIX_GFXOVERLAYS: automatically build gfxoverlays and include them into binary # (Default: ${LB_KANOTIX_GFXOVERLAYS}) LB_KANOTIX_GFXOVERLAYS="${LB_KANOTIX_GFXOVERLAYS}" EOF grep -q ". config/kanotix" config/all 2>/dev/null || echo "[ -r config/kanotix ] && . config/kanotix" >> config/all } # process Kanotix config values unset args; i=1 while [ "$1" ] do case "$1" in --tmpfs) LB_KANOTIX_TMPFS="$2" shift ;; --tmpfs-options) LB_KANOTIX_TMPFS_OPTIONS="$2" shift ;; --gfxoverlays) LB_KANOTIX_GFXOVERLAYS="$2" shift ;; --help|-h) lb config noauto --help usage exit 1 ;; *) args[$i]="$1" ((i++)) ;; esac shift done set -- "${args[@]}" write_kanotix_config