#!/bin/sh # # script to install a kernel update # cd /boot/beos/system # download the update file echo "Downloading the update from the Be ftp site" ftp ftp.be.com << EOF > /dev/null 2>&1 ftp ftp bin cd pub/experimental/r3.1/980618-ppc get 980618-update-ppc.zip bye EOF # backup existing files echo "Backing up existing files" [ -f kernel_mac ] && cp -f kernel_mac kernel_mac_alt [ -f kernel_mac.xMAP ] && cp -f kernel_mac.xMAP kernel_mac_alt.xMAP [ -f kernel_joe ] && cp -f kernel_joe kernel_joe_alt [ -f kernel_joe.xMAP ] && cp -f kernel_joe.xMAP kernel_joe_alt.xMAP # unpack the update over existing files echo "Installing the update" unzip -o 980618-update-ppc.zip > /dev/null 2>&1 # flush the filesystem cache sync echo echo "The update was installed successfully. You must now restart your system" echo "for the update to take effect." echo