Subversion Repositories livecd

Rev

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

Rev 23 Rev 67
Line 117... Line 117...
117
 
117
 
118
### define ARCH
118
### define ARCH
119
ARCH=$( /bin/arch )
119
ARCH=$( /bin/arch )
120
[ "$ARCH" != "x86_64" ] && ARCH=i686
120
[ "$ARCH" != "x86_64" ] && ARCH=i686
121
 
121
 
122
### define RELEASE string
-
 
123
RELEASE="my"
-
 
124
[ -e /etc/redhat-release ] && RELEASE=$( cat /etc/redhat-release )
-
 
125
 
-
 
126
### write script version to /etc/livecd-release
122
### write script version to /etc/livecd-release
127
SCRIPT_VERSION=$( cat version 2>/dev/null )
123
SCRIPT_VERSION=$( cat version 2>/dev/null )
128
echo $SCRIPT_VERSION > /etc/livecd-release
124
echo $SCRIPT_VERSION > /etc/livecd-release
129
 
125
 
130
### Check for SMP kernel and set SMP variable
126
### Check for SMP kernel and set SMP variable
Line 243... Line 239...
243
sed -i "s|append l initrd=boot/initrd${SMP}.gz init=linuxrc .*|append l initrd=boot/initrd${SMP}.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
239
sed -i "s|append l initrd=boot/initrd${SMP}.gz init=linuxrc .*|append l initrd=boot/initrd${SMP}.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
244
 
240
 
245
## for lable failsafe
241
## for lable failsafe
246
sed -i "s|append f initrd=boot/initrd.gz init=linuxrc .*|append f initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS $FAILSAFE_BOOT_OPTIONS|" cd-root/isolinux.cfg
242
sed -i "s|append f initrd=boot/initrd.gz init=linuxrc .*|append f initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS $FAILSAFE_BOOT_OPTIONS|" cd-root/isolinux.cfg
247
 
243
 
-
 
244
### define RELEASE string
-
 
245
[ -e /etc/redhat-release ] && RELEASE=$( cat /etc/redhat-release )
-
 
246
 
248
## Set Welcome ...
247
## Set Welcome ...
249
echo "Set 'Welcome ... to' in splash.cfg"
248
echo "Set 'Welcome ... to' in splash.cfg"
-
 
249
ARCH64=""
250
sed -i "s|DVD|CD|" cd-root/boot/splash.cfg
250
[ "$ARCH" = "x86_64" ] && ARCH64="64bit"
-
 
251
 
251
if [ $PSI ]; then
252
if [ $PSI ]; then
252
    sed -i "s|Welcome to.*|Welcome to PSI $LIVECD_OS LiveCD|" cd-root/boot/splash.cfg
253
    sed -i "s|Welcome to.*|Welcome to PSI $LIVECD_OS LiveCD ${ARCH64}|" cd-root/boot/splash.cfg
253
else
254
else
254
    sed -i "s|Welcome to.*|Welcome to $RELEASE|" cd-root/boot/splash.cfg
255
    sed -i "s|Welcome to.*|Welcome to $RELEASE ${ARCH64}|" cd-root/boot/splash.cfg
255
fi
256
fi
256
 
257
 
257
## Set LiveCD / LiveCD 64bit
258
## Set DVD or MiniCD (just to be sure)
258
sed -i "s|LiveCD 64bit|LiveCD|" cd-root/boot/splash.cfg
-
 
259
[ "$ARCH" = "x86_64" ] && sed -i "s|LiveCD|LiveCD 64bit|" cd-root/boot/splash.cfg
259
[ $DVD ]  && sed -i "s|CD|DVD|"    cd-root/boot/splash.cfg
260
 
-
 
261
## Set DVD or CD
-
 
262
[ $DVD ] && sed -i "s|CD|DVD|" cd-root/boot/splash.cfg
260
[ $MINI ] && sed -i "s|CD|MiniCD|" cd-root/boot/splash.cfg
263
 
261
 
264
 
262
 
265
 
263
 
266
### Run runme.sh
264
### Run runme.sh
267
### -----------------------------------------------------------
265
### -----------------------------------------------------------