Subversion Repositories livecd

Rev

Rev 84 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84 Rev 88
Line 58... Line 58...
58
 
58
 
59
# services on/off
59
# services on/off
60
SERVICEON=$( cmdline_value serviceon )
60
SERVICEON=$( cmdline_value serviceon )
61
SERVICEOFF=$( cmdline_value serviceoff )
61
SERVICEOFF=$( cmdline_value serviceoff )
62
 
62
 
-
 
63
# Xserver configurations
-
 
64
SCREEN=$( cmdline_value screen )
-
 
65
 
63
 
66
 
64
### -----------------------------------------------------------
67
### -----------------------------------------------------------
65
### Configure services
68
### Configure services
66
### -----------------------------------------------------------
69
### -----------------------------------------------------------
67
 
70
 
68
### disable rpcidmapd, if LiveCD mounted over NFS
71
### disable rpcidmapd, if LiveCD mounted over NFS
69
if [ $NFSROOT ]; then
72
if [ $NFSROOT ]; then
70
    chkconfig rpcidmapd off
73
    chkconfig rpcidmapd off
71
fi
74
fi
72
 
75
 
-
 
76
### disable NetworkManager, if LiveCD mounted over NFS
-
 
77
if [ $NFSROOT ]; then
-
 
78
    chkconfig NetworkManager off
-
 
79
    chkconfig NetworkManagerDispatcher off
-
 
80
fi
-
 
81
 
73
### disable shutdown of network and nfs, 
82
### disable shutdown of network and nfs, 
74
# if we have the LiveCD mounted over NFS
83
# if we have the LiveCD mounted over NFS
75
if [ $NFSROOT ]; then
84
if [ $NFSROOT ]; then
76
    if [ $ONEMASTER ]; then
85
    if [ $ONEMASTER ]; then
77
        # "network off" is only necessary, 
86
        # "network off" is only necessary, 
Line 127... Line 136...
127
	chkconfig ipw3945d on 2>/dev/null
136
	chkconfig ipw3945d on 2>/dev/null
128
    fi
137
    fi
129
fi
138
fi
130
 
139
 
131
### enable 915resolution on Intel Mobile Display controller
140
### enable 915resolution on Intel Mobile Display controller
-
 
141
#   and set resolution in /etc/sysconfig/915resolution defined by screen=
132
lspci | grep -q Display.*Intel.*Mobile
142
lspci | grep -q Display.*Intel.*Mobile
133
if [ "$?" = "0" ]; then 
143
if [ "$?" = "0" ]; then 
134
    chkconfig 915resolution on 2>/dev/null
144
    chkconfig 915resolution on 2>/dev/null
-
 
145
    if [ -e /etc/sysconfig/915resolution ]; then
-
 
146
	X=$( echo $SCREEN | cut -d"x" -f1 )
-
 
147
	Y=$( echo $SCREEN | cut -d"x" -f2 )
-
 
148
	if [ $X ]; then
-
 
149
	    sed -i "s|^X=.*|X=$X|" /etc/sysconfig/915resolution
-
 
150
	fi
-
 
151
	if [ $Y ]; then
-
 
152
	    sed -i "s|^Y=.*|Y=$Y|" /etc/sysconfig/915resolution
-
 
153
	fi
-
 
154
    fi
135
fi
155
fi
136
 
156
 
137
### services on
157
### services on
138
if [ -n $SERVICEON ]; then
158
if [ -n $SERVICEON ]; then
139
    for service in `echo "$SERVICEON" | tr ':' ' '`; do
159
    for service in `echo "$SERVICEON" | tr ':' ' '`; do