Subversion Repositories livecd

Rev

Rev 199 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 202
Line 131... Line 131...
131
### write script version to /etc/livecd-release
131
### write script version to /etc/livecd-release
132
SCRIPT_VERSION=$( cat version 2>/dev/null )
132
SCRIPT_VERSION=$( cat version 2>/dev/null )
133
echo $SCRIPT_VERSION > /etc/livecd-release
133
echo $SCRIPT_VERSION > /etc/livecd-release
134
 
134
 
135
### Check if we have the kernel, which is defined in livecd.conf
135
### Check if we have the kernel, which is defined in livecd.conf
-
 
136
wrong_kernel=""
136
rpm -q kernel | grep -q $KERNEL
137
rpm -q kernel | grep -q $KERNEL
-
 
138
[ "$?" != "0" ] && wrong_kernel="yes"
-
 
139
ls /lib/modules/$KERNEL >/dev/null
-
 
140
[ "$?" != "0" ] && wrong_kernel="yes"
137
if [ "$?" != "0" ]; then
141
if [ "$wrong_kernel" ]; then
138
    echo "ERROR: You don't have kernel $KERNEL installed."
142
    echo "ERROR: You don't have kernel $KERNEL installed."
139
    echo "       Please check your settings in livecd.conf"
143
    echo "       Please check your settings in livecd.conf"
140
    exit 1
144
    exit 1
141
fi
145
fi
142
 
146