]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Dropped shm no need for 90% of our users
authorManiacikarus <maniacikarus@ipfire.org>
Tue, 30 Sep 2008 13:29:14 +0000 (15:29 +0200)
committerManiacikarus <maniacikarus@ipfire.org>
Tue, 30 Sep 2008 13:29:14 +0000 (15:29 +0200)
resized lock and added spool

config/etc/fstab
config/rootfiles/updater/update.sh
lfs/qemu
src/paks/qremu/install.sh [new file with mode: 0644]
src/paks/qremu/uninstall.sh [new file with mode: 0644]
src/paks/qremu/update.sh [new file with mode: 0644]

index a82aaeb9414013aa22a8cc7d3d251a69a06acacc..a62a74c15b604487b47f4423a93716ddd2216451 100644 (file)
@@ -8,7 +8,7 @@ DEVICE4 /var    FSTYPE  defaults        1       1
 proc   /proc   proc    defaults        0       0
 sysfs  /sys    sysfs   defaults        0       0
 devpts /dev/pts        devpts   gid=4,mode=620  0     0
-shm    /dev/shm        tmpfs   defaults,size=25%       0       0
 none   /tmp            tmpfs   defaults,size=128M      0       0
 none   /var/log/rrd    tmpfs   defaults,size=64M       0       0
-none   /var/lock       tmpfs   defaults,size=32M       0       0
+none   /var/lock       tmpfs   defaults,size=16M       0       0
+none   /var/spool      tmpfs   defaults,size=16M       0       0
index 6ed28e0cd064f643618bdd9a47620ea266704819..18593dcde80298aa688cd0a86ed5271da1b02f30 100755 (executable)
@@ -153,10 +153,10 @@ grub-install --no-floppy ${ROOT::`expr length $ROOT`-1}
 # Update fstab
 #
 grep -v "tmpfs" /etc/fstab > /tmp/fstab.tmp
-echo shm       /dev/shm        tmpfs   defaults,size=25%       0       0 >> /tmp/fstab.tmp
 echo none      /tmp            tmpfs   defaults,size=128M      0       0 >> /tmp/fstab.tmp
 echo none      /var/log/rrd    tmpfs   defaults,size=64M       0       0 >> /tmp/fstab.tmp
-echo none      /var/lock       tmpfs   defaults,size=32M       0       0 >> /tmp/fstab.tmp
+echo none      /var/lock       tmpfs   defaults,size=16M       0       0 >> /tmp/fstab.tmp
+echo none      /var/spool      tmpfs   defaults,size=16M       0       0 >> /tmp/fstab.tmp
 mv /tmp/fstab.tmp /etc/fstab
 #
 # Change version of Pakfire.conf
index 271bafa6a893012f56c8f0ef63b6bd254dcaf826..5e7d980d2beacad62f5d5ece9e70dd5d93cc2d8c 100644 (file)
--- a/lfs/qemu
+++ b/lfs/qemu
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = qemu
-PAK_VER    = 2
+PAK_VER    = 3
 
 DEPS       = "sdl"
 
diff --git a/src/paks/qremu/install.sh b/src/paks/qremu/install.sh
new file mode 100644 (file)
index 0000000..052127b
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire 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 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire 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 IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+extract_files
+restore_backup ${NAME}
+echo none      /dev/shm        tmpfs   defaults,size=256M      0       0 >> /etc/fstab
+start_service --background ${NAME}
diff --git a/src/paks/qremu/uninstall.sh b/src/paks/qremu/uninstall.sh
new file mode 100644 (file)
index 0000000..f1ed442
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire 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 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire 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 IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+stop_service ${NAME}
+grep -v "/dev/shm" /etc/fstab > /tmp/fstab.tmp
+mv /tmp/fstab.tmp /etc/fstab
+make_backup ${NAME}
+remove_files
diff --git a/src/paks/qremu/update.sh b/src/paks/qremu/update.sh
new file mode 100644 (file)
index 0000000..89c40d0
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire 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 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire 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 IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+./uninstall.sh
+./install.sh