#!/bin/bash #must be startet after after cupsd #%rlevels: 2:s 3:s 5:s #%start: 98 #%stop: #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions if [ -e /.bootdev ] then source /.bootdev else echo "Couldn't find /.bootdev. Aborting." exit 1 fi settings_import() { if [ "${FSTYPE}" == "vfat" ] then if [ -e /mnt/cdrom/settings/system/printing ] then echo -e ${COLOREDSTAR}"Importing alx-printers ..." ( cp -R /mnt/cdrom/settings/system/printing /etc/alx-config/settings/menu && source /etc/alx-config/config.rc && source /opt/alx-config/Configurator/config_functions.sh && setup_printers > /dev/null 2>&1 && touch /etc/alx-config/imported ) evaluate_retval fi fi } case $1 in start) settings_import update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; *) echo "Usage: $0 {start} ..." ;; esac