Subversion Repositories livecd

Rev

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

Rev 128 Rev 134
Line 98... Line 98...
98
 
98
 
99
echo "Configure system ..."
99
echo "Configure system ..."
100
 
100
 
101
# build nvidia kernel modules 
101
# build nvidia kernel modules 
102
[ -x /usr/sbin/mknvidia ] && mknvidia
102
[ -x /usr/sbin/mknvidia ] && mknvidia
-
 
103
dkms status -m nvidia 2>/dev/null | grep -q nvidia
-
 
104
if [ "$?" = "0" ]; then
-
 
105
    module_version=$( dkms status -m nvidia | cut -d"," -f2 )
-
 
106
    dkms build -m nvidia -v $module_version -k $KERNEL
-
 
107
    dkms install -m nvidia -v $module_version -k $KERNEL
-
 
108
fi
103
 
109
 
104
# build vpnclient kernel module
110
# build vpnclient kernel module
-
 
111
running_kernel=$( uname -r )
105
[ -x /usr/sbin/mkvpnclient ] && mkvpnclient
112
if [ -x /usr/sbin/mkvpnclient ]; then
-
 
113
    if [ "$running_kernel" = "$KERNEL" ]; then
-
 
114
	mkvpnclient
-
 
115
    else
-
 
116
	echo "VPN client kernel module could not be build. Is it installed?"
-
 
117
	sleep 5
-
 
118
    fi
-
 
119
fi
106
 
120
 
107
# Update Virus definitions 
121
# Update Virus definitions 
108
# run freshclam
122
# run freshclam
109
if [ -x /usr/bin/freshclam ]; then
123
if [ -x /usr/bin/freshclam ]; then
110
    echo; echo "Run /usr/bin/freshclam:"
124
    echo; echo "Run /usr/bin/freshclam:"
Line 133... Line 147...
133
# copy back /etc/yum.repos.d.ori to /etc/yum.repos.d
147
# copy back /etc/yum.repos.d.ori to /etc/yum.repos.d
134
if [ -d /etc/yum.repos.d.ori ]; then
148
if [ -d /etc/yum.repos.d.ori ]; then
135
    cp -a /etc/yum.repos.d.ori /etc/yum.repos.d
149
    cp -a /etc/yum.repos.d.ori /etc/yum.repos.d
136
fi
150
fi
137
 
151
 
138
# run cfagent
-
 
139
if [ $PSI ]; then
-
 
140
    if [ -e /usr/bin/cfagent ]; then
-
 
141
        # cfagent needs running afs
-
 
142
	/etc/init.d/afs start
-
 
143
	echo "Run cfagent ..."
-
 
144
	cfagent 
-
 
145
	/etc/init.d/afs stop    
-
 
146
    fi
-
 
147
fi
-
 
148
 
-
 
149
echo "done."
152
echo "done."
150
echo "--------------------------------------------"
153
echo "--------------------------------------------"
151
 
154
 
152
 
155
 
153
 
156