Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/alxprinters

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 915 byte(s)
imported.

1 niro 2 #!/bin/bash
2     #must be startet after after cupsd
3    
4     #%rlevels: 2:s 3:s 5:s
5     #%start: 98
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     if [ -e /.bootdev ]
17     then
18     source /.bootdev
19     else
20     echo "Couldn't find /.bootdev. Aborting."
21     exit 1
22     fi
23    
24    
25     settings_import() {
26     if [ "${FSTYPE}" == "vfat" ]
27     then
28     if [ -e /mnt/cdrom/settings/system/printing ]
29     then
30     echo -e ${COLOREDSTAR}"Importing alx-printers ..."
31     ( cp -R /mnt/cdrom/settings/system/printing /etc/alx-config/settings/menu &&
32     source /etc/alx-config/config.rc &&
33     source /opt/alx-config/Configurator/config_functions.sh &&
34     setup_printers > /dev/null 2>&1 &&
35     touch /etc/alx-config/imported )
36     evaluate_retval
37     fi
38     fi
39     }
40    
41     case $1 in
42     start)
43     settings_import
44     update_svcstatus $1
45     splash svc_started "$(basename $0)" 0
46     ;;
47    
48     *)
49     echo "Usage: $0 {start} ..."
50     ;;
51     esac

Properties

Name Value
svn:executable *