title IPFire (1024x768)
root (hd0,0)
kernel /vmlinuz-ipfire root=ROOT panic=10 vga=791 splash=silent ro
- initrd /initrd.splash
+ initrd /ipfirerd.img
savedefault 0
title IPFire (VESA)
root (hd0,0)
kernel /vmlinuz-ipfire root=ROOT panic=10 ro
- initrd /initrd.splash
+ initrd /ipfirerd.img
savedefault 1
title IPFire SMP (1024x768)
root (hd0,0)
kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off vga=791 splash=silent ro
- initrd /initrd.splash
+ initrd /ipfirerd-smp.img
savedefault 2
title IPFire SMP (VESA)
root (hd0,0)
kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off ro
- initrd /initrd.splash
+ initrd /ipfirerd-smp.img
savedefault 3
title IPFire SMP-HT (Intel Pentium 4) (1024x768)
root (hd0,0)
kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht vga=791 splash=silent ro
- initrd /initrd.splash
+ initrd /ipfirerd-smp.img
savedefault 4
title IPFire SMP-HT (Intel Pentium 4) (VESA)
root (hd0,0)
kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht ro
- initrd /initrd.splash
+ initrd /ipfirerd-smp.img
savedefault 5
+++ /dev/null
-timeout 10
-default saved
-foreground = 16064e
-background = ffffff
-gfxmenu /grub/message
-title IPFire (1024x768)
- root (hd0,0)
- kernel /vmlinuz-ipfire root=ROOT panic=10 init=/linuxrc vga=791 splash=silent rw
- initrd /ipfirerd.img
- savedefault 0
-title IPFire (VESA)
- root (hd0,0)
- kernel /vmlinuz-ipfire root=ROOT panic=10 init=/linuxrc rw
- initrd /ipfirerd.img
- savedefault 1
-title IPFire SMP (1024x768)
- root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 init=/linuxrc acpi=off vga=791 splash=silent rw
- initrd /ipfirerd-smp.img
- savedefault 2
-title IPFire SMP (VESA)
- root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 init=/linuxrc acpi=off rw
- initrd /ipfirerd-smp.img
- savedefault 3
-title IPFire SMP (Intel Pentium 4) (1024x768)
- root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 init=/linuxrc acpi=ht vga=791 splash=silent rw
- initrd /ipfirerd-smp.img
- savedefault 4
-title IPFire SMP (Intel Pentium 4) (VESA)
- root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 init=/linuxrc acpi=ht rw
- initrd /ipfirerd-smp.img
- savedefault 5
boot/grub/grubbatch
boot/grub/ipfire.xpm.gz
boot/grub/message
-boot/grub/scsigrub.conf
boot/grub/stage1
boot/grub/stage2
#usr/bin/mbchk
--file=/packagetmp.tar --exclude='#*'
cd / && tar -x -C /tmp -f /packagetmp.tar
rm -f /packagetmp.tar
- -cd /tmp && tar cjvf /install/packages/package/files.tbz2 *
+ cd /tmp && tar cjvf /install/packages/package/files.tbz2 *
cd / && rm -rf /tmp/*
- cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
+ -cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
cd /install/packages/package && tar cfj ../$(PROG)-$(VER)-$(PAK_VER).ipfire \
files.tbz2 install.sh uninstall.sh update.sh ROOTFILES
rm -rf /install/packages/package
-DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \
-DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"' -DKERNEL_VERSION='\"$(KVER)\"'"
cd $(DIR_APP)/install && install -v -m 0755 install probenic.sh \
- probecntrl.sh probehw.sh installbootsplash.sh mountsource.sh mountdest.sh /install/initrd/bin
+ probehw.sh installbootsplash.sh mountsource.sh mountdest.sh /install/initrd/bin
@rm -rf $(DIR_APP)
@$(POSTBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./install.sh ""
sed -i 's|^FILELIST=.*|FILELIST="$$(mktemp)"|g' /sbin/mkinitcpio
+ sed -i 's|^HOOKS=.*|HOOKS="base udev autodetect ide usb scsi sata filesystems"|g' /etc/mkinitcpio.conf
@rm -rf $(DIR_APP)
@$(POSTBUILD)
i++;
fprintf(flog, "Harddisk scan pass %i\n", i);
- rc = mysystem("/bin/mountdest.sh");
- fprintf(flog, "RC %d\n", rc);
-
- if (rc == 0) { // Found IDE disk
- scsi_disk = 0;
- found = 1;
- } else if (rc == 1) { // Found SCSI/USB/SATA disk
- scsi_disk = 1;
- found = 1;
- } else { // No harddisk found
- if (firstrun == 1) {
- errorbox(ctr[TR_NO_HARDDISK]);
- goto EXIT;
- }
- // Do this if the kudzu-scan fails...
- runcommandwithstatus("/bin/probehw.sh deep-scan", ctr[TR_PROBING_HARDWARE]);
- firstrun = 1;
- }
-
-/* switch (mysystem("/bin/mountdest.sh")) {
+ switch (mysystem("/bin/mountdest.sh") % 255) {
case 0: // Found IDE disk
scsi_disk = 0;
found = 1;
// Do this if the kudzu-scan fails...
runcommandwithstatus("/bin/probehw.sh deep-scan", ctr[TR_PROBING_HARDWARE]);
firstrun = 1;
- } */
+ }
}
/*
/* Going to make our initrd... */
snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION);
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
- snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd-smp.img -k %s-smp-ipfire", KERNEL_VERSION);
+ snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd-smp.img -k %s-ipfire-smp", KERNEL_VERSION);
runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
sprintf(string, "root=%s3", hdparams.devnode_part_run);
+++ /dev/null
-#!/bin/sh
-
-echo "Probing for storage controllers"
-for MODULE in $(hwinfo --usb --usb-ctrl --storage-ctrl | grep modprobe | awk '{ print $5 }' | tr -d \" | sort | uniq); do
- if [ "${MODULE}" = "piix" ]; then
- continue
- fi
- if grep -Eqe "^${MODULE} " /proc/modules; then
- MODULES="${MODULES} --with=${MODULE}"
- echo "Found: ${MODULE}"
- fi
-done
-
-if [ -z "${MODULES}" ]; then
- exit 1
-else
- echo "${MODULES}" > /tmp/cntrldriver
- exit 0
-fi