mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
Dropped shm no need for 90% of our users
resized lock and added spool
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
lfs/qemu
2
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"
|
||||
|
||||
|
||||
28
src/paks/qremu/install.sh
Normal file
28
src/paks/qremu/install.sh
Normal file
@@ -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}
|
||||
29
src/paks/qremu/uninstall.sh
Normal file
29
src/paks/qremu/uninstall.sh
Normal file
@@ -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
|
||||
26
src/paks/qremu/update.sh
Normal file
26
src/paks/qremu/update.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user