Swap Size verringert und kleine Aenderung im Mountsource

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@797 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-08-22 07:24:06 +00:00
parent 3bc32eab4a
commit 3485f9a2ef
2 changed files with 5 additions and 6 deletions

View File

@@ -58,8 +58,7 @@ long calc_swapsize(long memory, long disk) {
if (memory > 1024) {
return 512;
}
return memory*2;
return memory;
}
long calc_rootsize(long free, long max) {
@@ -155,9 +154,9 @@ int main(int argc, char *argv[])
mysystem("/sbin/modprobe generic");
mysystem("/sbin/modprobe ide-cd");
mysystem("/sbin/modprobe ide-disk");
mysystem("/sbin/modprobe uhci_hcd");
mysystem("/sbin/modprobe ohci_hcd");
mysystem("/sbin/modprobe ehci_hcd");
mysystem("/sbin/modprobe uhci-hcd");
mysystem("/sbin/modprobe ohci-hcd");
mysystem("/sbin/modprobe ehci-hcd");
mysystem("/sbin/modprobe ohci1394");
mysystem("/sbin/modprobe sd_mod");
mysystem("/sbin/modprobe sr_mod");

View File

@@ -27,7 +27,7 @@ for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort |
umount /cdrom 2> /dev/null
done
if [ -e /tmp/source_device ]; then
if [ -e "/tmp/source_device" ]; then
mount /dev/$(cat /tmp/source_device) /cdrom 2> /dev/null
exit 0
else