1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

initscripts: add dependency headers

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4801 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton
2008-07-03 15:20:56 +00:00
parent 2a7b3ad491
commit bde70a9f31
20 changed files with 143 additions and 74 deletions
@@ -1,4 +1,11 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: alignment
# Required-Start: mountkernfs
# Required-Stop: mountkernfs
# Default-Start: S
# Default-Stop:
### END INIT INFO
if [ -e /proc/cpu/alignment ]; then
echo "3" > /proc/cpu/alignment
+7
View File
@@ -1,4 +1,11 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: banner
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INFO
if [ ! -e /dev/tty ]; then
/bin/mknod -m 0666 /dev/tty c 5 0
+8 -3
View File
@@ -1,6 +1,11 @@
#
# bootmisc.sh Miscellaneous things to be done during bootup.
#
### BEGIN INIT INFO
# Provides: bootmisc
# Required-Start: $local_fs mountvirtfs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Misc and other.
### END INIT INFO
. /etc/default/rcS
#
+8 -5
View File
@@ -1,8 +1,11 @@
#
# checkfs.sh Check all filesystems.
#
# Version: @(#)checkfs 2.83 05-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: checkfs
# Required-Start: checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Check all other file systems
### END INIT INFO
. /etc/default/rcS
+1 -1
View File
@@ -1,6 +1,6 @@
### BEGIN INIT INFO
# Provides: checkroot
# Required-Start: udev sysfs
# Required-Start: udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
-1
View File
@@ -3,4 +3,3 @@
if ! test -e /etc/.configured; then
> /etc/.configured
fi
+10 -5
View File
@@ -1,9 +1,14 @@
#! /bin/sh
#
# halt Execute the halt command.
#
# Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl
#
###
# BEGIN INIT INFO
# Provides: halt
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 0
# Short-Description: Execute the halt command.
# Description:
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+8 -6
View File
@@ -1,11 +1,13 @@
#
# hostname.sh Set hostname.
#
# Version: @(#)hostname.sh 1.10 26-Feb-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: hostname
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Set hostname based on /etc/hostname
### END INIT INFO
if test -f /etc/hostname
then
hostname -F /etc/hostname
fi
+10 -5
View File
@@ -1,8 +1,13 @@
#
# mountall.sh Mount all filesystems.
#
# Version: @(#)mountall.sh 2.83-2 01-Nov-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: mountall
# Required-Start: mountvirtfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mount all filesystems.
# Description:
### END INIT INFO
. /etc/default/rcS
#
+7 -11
View File
@@ -1,14 +1,10 @@
#
# mountnfs.sh Now that TCP/IP is configured, mount the NFS file
# systems in /etc/fstab if needed. If possible,
# start the portmapper before mounting (this is needed for
# Linux 2.1.x and up).
#
# Also mounts SBM filesystems now, so the name of
# this script is getting increasingly inaccurate.
#
# Version: @(#)mountnfs.sh 2.83 05-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: mountnfs
# Required-Start: $local_fs $network $portmap
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INFO
. /etc/default/rcS
@@ -1,4 +1,12 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: volatile
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop:
# Short-Description: Populate the volatile filesystem
### END INIT INFO
. /etc/default/rcS
+9 -5
View File
@@ -1,9 +1,13 @@
#! /bin/sh
#
# reboot Execute the reboot command.
#
# Version: @(#)reboot 2.75 22-Jun-1998 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: reboot
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 6
# Short-Description: Execute the reboot command.
# Description:
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+12 -6
View File
@@ -1,10 +1,16 @@
#! /bin/sh
#
# rmnologin This script removes the /etc/nologin file as the last
# step in the boot process.
#
# Version: @(#)rmnologin 1.00 22-Jun-1998 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: rmnologin
# Required-Start: $remote_fs $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Remove /etc/nologin at boot
# Description: This script removes the /etc/nologin file as the
# last step in the boot process, if DELAYLOGIN=yes.
# If DELAYLOGIN=no, /etc/nologin was not created by
# bootmisc earlier in the boot process.
### END INIT INFO
if test -f /etc/nologin.boot
then
+9 -5
View File
@@ -1,9 +1,13 @@
#! /bin/sh
#
# sendsigs Kill all remaining processes.
#
# Version: @(#)sendsigs 2.75 22-Jun-1998 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: sendsigs
# Required-Start:
# Required-Stop: umountnfs
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Kill all remaining processes.
# Description:
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+8 -5
View File
@@ -1,9 +1,12 @@
#! /bin/sh
#
# single executed by init(8) upon entering runlevel 1 (single).
#
# Version: @(#)single 1.20 26-Geb-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: single
# Required-Start: $local_fs $all killprocs
# Required-Stop:
# Default-Start: 1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: sysfs
# Provides: mountvirtfs
# Required-Start:
# Required-Stop:
# Default-Start: S
+9 -3
View File
@@ -1,7 +1,13 @@
#! /bin/sh
#
# umountfs Turn off swap and unmount all local filesystems.
#
### BEGIN INIT INFO
# Provides: umountfs
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+9 -5
View File
@@ -1,7 +1,12 @@
#! /bin/sh
#
# umountnfs.sh Unmount all network filesystems.
#
### BEGIN INIT INFO
# Provides: umountnfs
# Required-Start:
# Required-Stop: umountfs
# Should-Stop: $network $portmap
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Unmount all network filesystems
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@ -25,4 +30,3 @@ done
) < /etc/fstab
: exit 0
+11 -6
View File
@@ -1,10 +1,15 @@
#! /bin/sh
#
# urandom This script saves the random seed between reboots.
# It is called from the boot, halt and reboot scripts.
#
# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: urandom
# Required-Start: $local_fs mountvirtfs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Save and restore the random seed
# Description: Save the random seed on shutdown and restore it on boot,
# to ensure that the seed isn't predicable on startup
# (because the boot process is predictable)
### END INIT INFO
test -c /dev/urandom || exit 0
. /etc/default/rcS
+1 -1
View File
@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
PR = "r111"
PR = "r113"
SRC_URI = "file://functions \
file://halt \