Magellan Linux

Contents of /trunk/magellan-initscripts/etc/rc.d/init.d/alxsettings

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 1022 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

1 #!/bin/bash
2 #must be startet after mountfs_livecd
3
4 #%rlevels: 7:s
5 #%start: 41
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 ]
29 then
30 echo -e ${COLOREDSTAR}"Importing old alx-settings ..."
31 ( cp -R /mnt/cdrom/settings/system/* /etc/alx-config/settings/menu && source /etc/alx-config/config.rc &&
32 source /opt/alx-config/Configurator/config_functions.sh &&
33 setup_xfree > /dev/null 2>&1 &&
34 setup_modules > /dev/null 2>&1 &&
35 setup_network > /dev/null 2>&1 &&
36 #setup_printers > /dev/null 2>&1 &&
37 setup_sessions > /dev/null 2>&1 &&
38 touch /etc/alx-config/imported )
39 evaluate_retval
40 fi
41 fi
42 }
43
44 case $1 in
45 start)
46 settings_import
47 update_svcstatus $1
48 splash svc_started "$(basename $0)" 0
49 ;;
50
51 *)
52 echo "Usage: $0 {start} ..."
53 ;;
54 esac

Properties

Name Value
svn:executable *