1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/bin/sh
set -e
#if [ ! -z "`grep CHRP /proc/cpuinfo`" ] ; then
# echo CHRP system detected.
## PART=`fdisk -l | grep -F "PPC PReP Boot"`
# PART=`cfdisk -P s | grep -F "PPC PReP boot"`
# if [ -z "$PART" ] ; then
# echo '*********************************************************'
# echo '* You must create a PPC PReP Boot partition (type 0x41) *'
# echo '* for the CHRP bootloader to be installed. *'
# echo '*********************************************************'
# exit -1
# fi
# if [ `echo "$PART" | wc -l` != 1 ] ; then
# echo '**************************************************************'
# echo '* There are more than 1 PPC PReP Boot partitions (type 0x41) *'
# echo '* on this system. Aborting install rather than picking one. *'
# echo '**************************************************************'
# exit -1
# fi
# if [ -z `echo "$PART" | grep "Boot (80)"` ] ; then
# echo '***************************************************************'
# echo '* The PPC PReP Boot partition (type 0x41) is not marked as *'
# echo '* bootable. You will need to mark this partition as bootable *'
# echo '* before Quik can be installed onto it. *'
# echo '**************************************************************'
# exit -1
# fi
# P=`echo "$PART" | awk '{print $1}'`
# # assume /dev/sda!!!
# P=/dev/sda${P}
# echo Installing onto $P
# dd if=/boot/ppc/second of=$P
## mkdosfs $P
## mkdir /quikchrp
## mount -t msdos $P /quikchrp
## cp -rf /boot/ppc /quikchrp
## umount /quikchrp
## rm -f /quikchrp
#fi
if [ "$1" = "configure" ]; then
if test -f /proc/cpuinfo; then
if ! grep -q 'pmac-generation.*OldWorld' /proc/cpuinfo; then
echo "Quik should only be installed on OldWorld PowerMac machines."
exit 0;
fi
else
echo "Warning: couldn't stat /proc/cpuinfo."
echo "Please run /usr/sbin/quikconfig when /proc "
echo "becomes available as soon as possible."
exit 0
fi
fi
if
[ "$1" = "configure" ] && [ "$DEBIAN_FRONTEND" != noninteractive ] \
&& [ "$DEBIAN_FRONTEND" != Noninteractive ]; then
echo "running /usr/sbin/quikconfig"
echo
/usr/sbin/quikconfig || \
echo "WARNING: your system might not boot, check /etc/quik.conf and rerun '/sbin/quik -v'"
fi
#DEBHELPER#
exit 0
|