Subversion Repositories livecd

Rev

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

Rev 134 Rev 135
Line 100... Line 100...
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
103
dkms status -m nvidia 2>/dev/null | grep -q nvidia
104
if [ "$?" = "0" ]; then
104
if [ "$?" = "0" ]; then
-
 
105
    # already built?
-
 
106
    dkms status -m nvidia -k $KERNEL | grep installed
-
 
107
    if [ "$?" != "0" ]; then
105
    module_version=$( dkms status -m nvidia | cut -d"," -f2 )
108
	module_version=$( dkms status -m nvidia | cut -d"," -f2 )
106
    dkms build -m nvidia -v $module_version -k $KERNEL
109
	dkms build -m nvidia -v $module_version -k $KERNEL
107
    dkms install -m nvidia -v $module_version -k $KERNEL
110
	dkms install -m nvidia -v $module_version -k $KERNEL
108
fi
111
    fi
-
 
112
fi
109
 
113
 
110
# build vpnclient kernel module
114
# build vpnclient kernel module
111
running_kernel=$( uname -r )
115
running_kernel=$( uname -r )
112
if [ -x /usr/sbin/mkvpnclient ]; then
116
if [ -x /usr/sbin/mkvpnclient ]; then
113
    if [ "$running_kernel" = "$KERNEL" ]; then
117
    if [ "$running_kernel" = "$KERNEL" ]; then
114
	mkvpnclient
118
	mkvpnclient
115
    else
119
    else
116
	echo "VPN client kernel module could not be build. Is it installed?"
120
	echo -n "VPN client kernel module could not be build. Is it installed? "
117
	sleep 5
121
	sleep 5; echo
118
    fi
122
    fi
119
fi
123
fi
120
 
124
 
121
# Update Virus definitions 
125
# Update Virus definitions 
122
# run freshclam
126
# run freshclam