Updated initscripts

This commit is contained in:
root 2009-11-01 09:15:13 -08:00
parent 11abd1b058
commit 999cdeac6a
5 changed files with 26 additions and 44 deletions

View file

@ -13,9 +13,6 @@ depends=('glibc' 'bash' 'grep' 'coreutils' 'udev>=139-1' 'sysvinit' 'net-tools')
optdepends=('bridge-utils: Network bridging support' optdepends=('bridge-utils: Network bridging support'
'dhcpcd: DHCP network configuration' 'dhcpcd: DHCP network configuration'
'wireless_tools: Wireless networking') 'wireless_tools: Wireless networking')
#We will change them, so we should keep them in local repo
#Sorry, but they can't be kept in separate directory. Makepkg complains
#about it..
source=('adjtime.cron' source=('adjtime.cron'
'inittab' 'inittab'
'minilogd.c' 'minilogd.c'
@ -32,7 +29,7 @@ source=('adjtime.cron'
'rc.sysinit') 'rc.sysinit')
md5sums=('c03a4a5be5e2579b59e0dcd6a21d310b' md5sums=('c03a4a5be5e2579b59e0dcd6a21d310b'
'574273c77fff4954c8628418b5c8fc82' 'b5872d7ed0f129ebd883b9d26033d4fe'
'2c2dcc7ce7586f27fc5e6887f8ec74b8' '2c2dcc7ce7586f27fc5e6887f8ec74b8'
'e3637ea43f2dbabba7b1b44f94b0277d' 'e3637ea43f2dbabba7b1b44f94b0277d'
'bd236a57bc00aa4727b98c5ae401c457' 'bd236a57bc00aa4727b98c5ae401c457'
@ -41,10 +38,10 @@ md5sums=('c03a4a5be5e2579b59e0dcd6a21d310b'
'c98f6e640d0aeba23a4aed511c526d19' 'c98f6e640d0aeba23a4aed511c526d19'
'3fb0b6e945065ba1d283f136d17d612e' '3fb0b6e945065ba1d283f136d17d612e'
'96fdb70f95844d95a9941ee319601e8d' '96fdb70f95844d95a9941ee319601e8d'
'4a44e2c64b6820e67bedd5cd33699ec7' 'd0841b0139e955d8da162dc33c5002ea'
'669ce6d766dd9deb86686219f3763fe4' '669ce6d766dd9deb86686219f3763fe4'
'81e36de17d6ebf6fe9a1026a2d6f6f83' 'd907663acca54bb7d01ca1d8cf21d191'
'04476feac2c4aeff97b6d9fcd239f1e0') '9719eab844ea82022647f77695f7a929')
build() { build() {
cd ${startdir}/src/ cd ${startdir}/src/

View file

@ -24,12 +24,13 @@ rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login # -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux s0:12345:respawn:/sbin/agetty -8 115200 ttyS0 vt100
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux #c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux #c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux #c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux #c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux #c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now ca::ctrlaltdel:/sbin/shutdown -t3 -r now

View file

@ -1,20 +1,7 @@
# #
# /etc/rc.conf - Main Configuration for Arch Linux # /etc/rc.conf - PlugApps Main Configuration
# #
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8" LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime" HARDWARECLOCK="localtime"
TIMEZONE="Canada/Pacific" TIMEZONE="Canada/Pacific"
@ -46,7 +33,7 @@ USELVM="no"
# #
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
# #
HOSTNAME="myhost" HOSTNAME="plugbox"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces. # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
# #
@ -58,14 +45,15 @@ HOSTNAME="myhost"
# DHCP: Set your interface to "dhcp" (eth0="dhcp") # DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below # Wireless: See network profiles below
# #
usb0="usb0 192.168.0.202 up"
INTERFACES=(usb0) eth0="dhcp"
INTERFACES=(eth0)
# Routes to start at boot-up (in this order) # Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES # Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it # - prefix an entry in ROUTES with a ! to disable it
# #
gateway="default gw 192.168.0.200" gateway="default gw 192.168.0.1"
ROUTES=(gateway) ROUTES=(gateway)
# Enable these network profiles at boot-up. These are only useful # Enable these network profiles at boot-up. These are only useful

View file

@ -10,7 +10,7 @@
/bin/stty onlcr /bin/stty onlcr
echo " " echo " "
printhl "Initiating Shutdown..." printhl "Shutting down..."
echo " " echo " "
# avoid NIS hanging syslog-ng on shutdown by unsetting the domainname # avoid NIS hanging syslog-ng on shutdown by unsetting the domainname
@ -42,12 +42,12 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
fi fi
# Terminate all processes # Terminate all processes
stat_busy "Sending SIGTERM To Processes" stat_busy "Terminating Processes"
/sbin/killall5 -15 &> /dev/null /sbin/killall5 -15 &> /dev/null
/bin/sleep 5 /bin/sleep 5
stat_done stat_done
stat_busy "Sending SIGKILL To Processes" stat_busy "Killing Processes"
/sbin/killall5 -9 &> /dev/null /sbin/killall5 -9 &> /dev/null
/bin/sleep 1 /bin/sleep 1
stat_done stat_done
@ -146,4 +146,3 @@ else
fi fi
# End of file # End of file
# vim: set ts=2 sw=2 noet:

View file

@ -7,11 +7,9 @@
. /etc/rc.d/functions . /etc/rc.d/functions
echo " " echo " "
printhl "Arch Linux\n" printhl "PlugApps Linux\n"
printhl "${C_H2}http://www.archlinux.org" printhl "${C_H2}http://www.plugapps.com"
printhl "Copyright 2002-2007 Judd Vinet" printhl "Copyright 2009 Mike Staszel"
printhl "Copyright 2007-2009 Aaron Griffin"
printhl "Distributed under the GNU General Public License (GPL)"
printsep printsep
# mount /proc, /sys and our RAM /dev # mount /proc, /sys and our RAM /dev
@ -60,7 +58,7 @@ fi
echo > /proc/sys/kernel/hotplug echo > /proc/sys/kernel/hotplug
if [ -x /sbin/udevadm ]; then if [ -x /sbin/udevadm ]; then
stat_busy "Starting UDev Daemon" stat_busy "Starting UDev"
/sbin/udevd --daemon /sbin/udevd --daemon
stat_done stat_done
else else
@ -256,11 +254,11 @@ if [ -x /sbin/fsck ]; then
echo echo
echo "********************** REBOOT REQUIRED *********************" echo "********************** REBOOT REQUIRED *********************"
echo "* *" echo "* *"
echo "* The system will be rebooted automatically in 15 seconds. *" echo "* The system will be rebooted automatically in 10 seconds. *"
echo "* *" echo "* *"
echo "************************************************************" echo "************************************************************"
echo echo
/bin/sleep 15 /bin/sleep 10
fsck_reboot fsck_reboot
fi fi
if [ ${fsckret} -gt 1 -a ${fsckret} -ne 32 ]; then if [ ${fsckret} -gt 1 -a ${fsckret} -ne 32 ]; then
@ -421,4 +419,3 @@ fi
/bin/dmesg >| /var/log/dmesg.log /bin/dmesg >| /var/log/dmesg.log
# End of file # End of file
# vim: set ts=2 noet: