From: Maniacikarus Date: Tue, 30 Sep 2008 13:29:14 +0000 (+0200) Subject: Dropped shm no need for 90% of our users X-Git-Tag: v2.3-beta4~12^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dd4242e6f6c75ba16eea6f66b3d4437f6709be2;p=people%2Fstevee%2Fipfire-2.x.git Dropped shm no need for 90% of our users resized lock and added spool --- diff --git a/config/etc/fstab b/config/etc/fstab index a82aaeb941..a62a74c15b 100644 --- a/config/etc/fstab +++ b/config/etc/fstab @@ -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 diff --git a/config/rootfiles/updater/update.sh b/config/rootfiles/updater/update.sh index 6ed28e0cd0..18593dcde8 100755 --- a/config/rootfiles/updater/update.sh +++ b/config/rootfiles/updater/update.sh @@ -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 diff --git a/lfs/qemu b/lfs/qemu index 271bafa6a8..5e7d980d2b 100644 --- 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 index 0000000000..052127b6ca --- /dev/null +++ b/src/paks/qremu/install.sh @@ -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 . # +# # +############################################################################ +# +. /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 index 0000000000..f1ed442168 --- /dev/null +++ b/src/paks/qremu/uninstall.sh @@ -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 . # +# # +############################################################################ +# +. /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 index 0000000000..89c40d0d7c --- /dev/null +++ b/src/paks/qremu/update.sh @@ -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 . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh