@ -0,0 +1,105 @@ |
|||
|
|||
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|||
# |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# Please add additional copyright information _after_ the line containing |
|||
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|||
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|||
# |
|||
# ROCK Linux: rock-src/target/livecd/kernel.conf |
|||
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf |
|||
# |
|||
# 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 2 of the License, or |
|||
# (at your option) any later version. A copy of the GNU General Public |
|||
# License can be found at Documentation/COPYING. |
|||
# |
|||
# Many people helped and are helping developing ROCK Linux. Please |
|||
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
|||
# file for details. |
|||
# |
|||
# --- ROCK-COPYRIGHT-NOTE-END --- |
|||
|
|||
# boot, damn it! |
|||
CONFIG_X86_GENERIC=y |
|||
|
|||
#serial console |
|||
CONFIG_SERIAL_8250_CONSOLE=y |
|||
|
|||
# nfs server as module (smaller kernel image) |
|||
CONFIG_NFSD=m |
|||
|
|||
# no FireWire support |
|||
CONFIG_IEEE1394=n |
|||
CONFIG_IEEE1394_VIDEO1394=n |
|||
CONFIG_IEEE1394_SBP2=n |
|||
CONFIG_IEEE1394_DV1394=n |
|||
CONFIG_IEEE1394_RAWIO=n |
|||
CONFIG_IEEE1394_CMP=n |
|||
CONFIG_IEEE1394_ETH1394=n |
|||
|
|||
# no framebuffer stuff |
|||
CONFIG_VGA_CONSOLE=n |
|||
CONFIG_VIDEO_SELECT=n |
|||
CONFIG_FB=n |
|||
CONFIG_FRAMEBUFFER_CONSOLE=n |
|||
CONFIG_LOGO=n |
|||
|
|||
# no agp |
|||
CONFIG_AGP=n |
|||
|
|||
# no drm |
|||
CONFIG_DRM=n |
|||
|
|||
# no MD |
|||
CONFIG_MD=n |
|||
|
|||
# no oss! |
|||
CONFIG_SOUND_PRIME=n |
|||
CONFIG_DMASOUND_PMAC=n |
|||
|
|||
# no usb |
|||
CONFIG_USB=n |
|||
CONFIG_USB_GADGET=n |
|||
|
|||
# no weird filesystems |
|||
CONFIG_XFS_FS=n |
|||
CONFIG_JFS_FS=n |
|||
CONFIG_REISERFS_FS=n |
|||
CONFIG_QUOTA=n |
|||
CONFIG_UDF_FS=n |
|||
CONFIG_MSDOS_FS=n |
|||
CONFIG_VFAT_FS=n |
|||
CONFIG_NTFS_FS=n |
|||
CONFIG_CIFS=n |
|||
CONFIG_NCP_FS=n |
|||
CONFIG_AFS_FS=n |
|||
CONFIG_ADFS_FS=n |
|||
CONFIG_AFFS_FS=n |
|||
CONFIG_HFS_FS=n |
|||
CONFIG_HFSPLUS_FS=n |
|||
CONFIG_BEFS_FS=n |
|||
CONFIG_BFS_FS=n |
|||
CONFIG_EFS_FS=n |
|||
CONFIG_VXFS_FS=n |
|||
CONFIG_HPFS_FS=n |
|||
CONFIG_QNX4FS_FS=n |
|||
CONFIG_SYSV_FS=n |
|||
CONFIG_UFS_FS=n |
|||
|
|||
# no profiling |
|||
CONFIG_PROFILING=n |
|||
|
|||
# no acpi |
|||
CONFIG_ACPI=n |
|||
|
|||
# rarely needed for a router... |
|||
CONFIG_IBM_ASM=n |
|||
CONFIG_MMC=n |
|||
CONFIG_PARPORT=n |
|||
CONFIG_SMP=n |
|||
CONFIG_PREEMPT=n |
|||
CONFIG_FUSION=n |
|||
CONFIG_I2O=n |
|||
CONFIG_W1=n |
|||
@ -0,0 +1,17 @@ |
|||
|
|||
echo "router target -> disabling some settings ..." |
|||
|
|||
sed -e "s/CONFIG_VIDEO\(.*\)=./# CONFIG_VIDEO\1 is not set/" \ |
|||
-e "s/CONFIG_PHONE\(.*\)=./# CONFIG_PHONE\1 is not set/" \ |
|||
-e "s/CONFIG_RADIO\(.*\)=./# CONFIG_RADIO\1 is not set/" \ |
|||
-e "s/CONFIG_HAMRADIO\(.*\)=./# CONFIG_HAMRADIO\1 is not set/" \ |
|||
-e "s/CONFIG_SMP\(.*\)=./# CONFIG_SMP\1 is not set/" \ |
|||
-e "s/CONFIG_SOUND_\(.*\)=./# CONFIG_SOUND_\1 is not set/" \ |
|||
-e "s/CONFIG_PCI_NAMES\(.*\)=./# CONFIG_PCI_NAMES\1 is not set/" \ |
|||
-e "s/CONFIG_INPUT\(.*\)=./# CONFIG_INPUT\1 is not set/" \ |
|||
-e "s/CONFIG_GAMEPORT\(.*\)=./# CONFIG_GAMEPORT\1 is not set/" \ |
|||
-e "s/CONFIG_SCSI\(.*\)=./# CONFIG_SCSI\1 is not set/" \ |
|||
$1 > .config.router |
|||
|
|||
mv .config.router $1 |
|||
|
|||
@ -1,35 +0,0 @@ |
|||
#!/bin/sh |
|||
# |
|||
# We only need iptables, ip+tc, ssh and a kernel. But since we would |
|||
# make a native build we need a lot of other stuff for building those |
|||
# packages. This is autodetected here. |
|||
# |
|||
# Various small other packages (like bash and fileutils) which are |
|||
# also needed for the router are selected automatically because of the |
|||
# dependencies ... |
|||
|
|||
perl -e ' |
|||
my @x=qw/iptables iproute2 openssh linux24 util-linux time |
|||
coreutils procps strace pciutils 00-dirtree/; |
|||
$b{$_}=1 foreach @x; |
|||
print "\n"; |
|||
print "ALL: ".join(" ", @x)."\n"; |
|||
print "\n"; |
|||
while (<>) { |
|||
next unless /(.*): [0-9]* [0-9]* (.*)/; |
|||
my ($pkg, $deps) = ($1, ''); |
|||
foreach (split /\s+/, $2) { |
|||
next if /^(linux26|alsa|rpm|pam|gcc2)([^a-z]|$)/; |
|||
next unless -d "../../package/base/$_"; |
|||
$deps .= " $_"; $b{$_} = 1; |
|||
} |
|||
print "$pkg: $deps\n\t\@echo \"\/ $pkg \/ { p; d; }\"\n"; |
|||
$a{$pkg} = 1; |
|||
} |
|||
foreach (keys %b) { print "$_:\n\t\@echo \"/ $_ / { p; d; }\"\n\n" if not defined $a{$_}; } |
|||
' < ../../scripts/dep_db.txt > pkgsel.mk |
|||
|
|||
echo '# This file is auto-generated from pkgsel.sh' > pkgsel.sed |
|||
make -f pkgsel.mk ALL 2> /dev/null | sort -u >> pkgsel.sed |
|||
echo 'd;' >> pkgsel.sed; rm -f pkgsel.mk |
|||
|
|||
@ -0,0 +1,21 @@ |
|||
#!/bin/sh |
|||
|
|||
echo "Sending all processes a SIGTERM (15)." |
|||
killall5 -15 || error=$? ; sleep 5 |
|||
|
|||
echo "Sending all processes a 2nd SIGTERM (15)." |
|||
killall5 -15 || error=$? ; sleep 5 |
|||
|
|||
echo "Sending all processes a SIGKILL (9)." |
|||
killall5 -9 || error=$? ; sleep 5 |
|||
|
|||
echo "Turning off swap devices." |
|||
swapoff -a || error=$? |
|||
sync ; sleep 1 |
|||
|
|||
echo "Unmounting filesystems." |
|||
umount -advf || error=$? |
|||
|
|||
echo "Reboot ..." |
|||
reboot -f |
|||
|
|||