mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 09:52:58 +02:00
MySQL als Paket angelegt.
Grub-install finalisiert. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@897 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
/bin/cp -f /usr/lib/grub/i386-pc/* /boot/grub
|
||||
/usr/sbin/grub --no-floppy --batch <<EOT > /tmp/grub-install 2>&1
|
||||
device (hd0) DEVICE
|
||||
root (hd0,0)
|
||||
setup (hd0,0)
|
||||
setup (hd0)
|
||||
quit
|
||||
EOT
|
||||
@@ -509,10 +509,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
sprintf(string, "root=%s3", hdparams.devnode_part_run);
|
||||
replace( "/harddisk/boot/grub/grub.conf", "root=ROOT", string);
|
||||
replace( "/harddisk/boot/grub/grubbatch", "DEVICE", hdparams.devnode_disk);
|
||||
mysystem("ln -s grub.conf /harddisk/boot/grub/menu.lst");
|
||||
|
||||
/* restore permissions */
|
||||
chmod("/harddisk/boot/grub/grubbatch", S_IXUSR | S_IRUSR | S_IXGRP | S_IRGRP | S_IXOTH | S_IROTH);
|
||||
system("sed -e 's#harddisk\\/##g' < /proc/mounts > /harddisk/etc/mtab");
|
||||
|
||||
snprintf(commandstring, STRING_SIZE,
|
||||
"/sbin/chroot /harddisk /usr/sbin/grub-install --no-floppy %s", hdparams.devnode_disk);
|
||||
@@ -520,8 +519,6 @@ int main(int argc, char *argv[])
|
||||
errorbox(ctr[TR_UNABLE_TO_INSTALL_GRUB]);
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
mysystem("ln -s grub.conf /harddisk/boot/grub/menu.lst");
|
||||
|
||||
mysystem("umount /cdrom");
|
||||
snprintf(commandstring, STRING_SIZE, "eject /dev/%s", sourcedrive);
|
||||
|
||||
@@ -26,8 +26,9 @@ for MODULE in $(kudzu -qps -t 30 | grep driver: | cut -d ' ' -f 2 | sort | uniq
|
||||
[ "${MODULE}" = "" ]; then
|
||||
continue
|
||||
fi
|
||||
MODULE=$(basename $(find /lib/modules -name $(echo $MODULE | sed -e 's/[_-]/*/g')* ) | cut -d. -f1 | head -1 2>/dev/null)
|
||||
MODULE=$(find /lib/modules -name $(echo $MODULE | sed -e 's/[_-]/*/g')* 2>/dev/null)
|
||||
[ "${MODULE}" == "" ] && continue
|
||||
MODULE=$(basename $MODULE | cut -d. -f1 | head -1)
|
||||
|
||||
if grep -Eqe "^${MODULE} " /proc/modules; then
|
||||
continue
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
package Conf;
|
||||
|
||||
$version = "2.0beta1";
|
||||
$version = "2.0beta2";
|
||||
|
||||
$mainserver = "pakfire.ipfire.org";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user