Subversion Repositories livecd

Rev

Rev 131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 131 Rev 137
Line 53... Line 53...
53
 
53
 
54
# if run=rdesktop, we do fast boot
54
# if run=rdesktop, we do fast boot
55
if [ "$( cmdline_value run )" = "rdesktop" ]; then
55
if [ "$( cmdline_value run )" = "rdesktop" ]; then
56
    FASTBOOT="fastboot"
56
    FASTBOOT="fastboot"
57
fi
57
fi
58
 
58
 
59
# start ntpd ?
59
# start ntpd ?
60
NTPD=$( cmdline_parameter ntpd )
60
NTPD=$( cmdline_parameter ntpd )
61
 
61
 
62
# services on/off
62
# services on/off
63
SERVICEON=$( cmdline_value serviceon )
63
SERVICEON=$( cmdline_value serviceon )
Line 69... Line 69...
69
 
69
 
70
### -----------------------------------------------------------
70
### -----------------------------------------------------------
71
### Configure services
71
### Configure services
72
### -----------------------------------------------------------
72
### -----------------------------------------------------------
73
 
73
 
-
 
74
### save status of services that may be disabled, if LiveCD mounted over NFS
-
 
75
if [ $NFSROOT ]; then
-
 
76
    NFS_SERVICES="rpcidmapd NetworkManager NetworkManagerDispatcher \
-
 
77
                  netfs nfslock portmap network"
-
 
78
    for serv in $NFS_SERVICES; do
-
 
79
	chkconfig --list $serv | grep -q ":on" && echo $serv >> /$MOUNTDIR/service.on
-
 
80
    done
-
 
81
fi
-
 
82
 
74
### disable rpcidmapd, if LiveCD mounted over NFS
83
### disable rpcidmapd, if LiveCD mounted over NFS
75
if [ $NFSROOT ]; then
84
if [ $NFSROOT ]; then
-
 
85
    $MOUNTDIR
76
    chkconfig rpcidmapd off >/dev/null 2>&1
86
    chkconfig rpcidmapd off >/dev/null 2>&1
77
fi
87
fi
78
 
88
 
79
### disable NetworkManager, if LiveCD mounted over NFS
89
### disable NetworkManager, if LiveCD mounted over NFS
80
if [ $NFSROOT ]; then
90
if [ $NFSROOT ]; then