Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (24 sloc) 425 Bytes
#!/bin/bash
. /etc/lunar/config
. $BOOTSTRAP
preserve()
{
if [ -f $1 ] ; then
mv -f $1 $1.old
fi
}
# make backups
preserve $4/vmlinuz-$1
preserve $4/System.map-$1
preserve $4/config.$1
make modules_install
# bzImage
cp $2 $4/vmlinuz-$1
# System.map
cp $3 $4/System.map-$1
# save config as .gz
cp .config $4/config.$1
gzip -f $4/config.$1
# and update bootloader
update_bootloader vmlinuz-$1 $1
[ $? == 2 ] && true
Jump to Line
Something went wrong with that request. Please try again.