2010-09-27 14:44:05 +00:00
SUMMARY = " SysV init scripts "
DESCRIPTION = " Initscripts provide the basic system startup initialization scripts for the system. These scripts include actions such as filesystem mounting, fsck, RTC manipulation and other actions routinely performed at system startup. In addition, the scripts are also used during system shutdown to reverse the actions performed at startup. "
2005-08-31 10:45:47 +00:00
SECTION = " base "
PRIORITY = " required "
2010-06-12 05:13:45 +00:00
LICENSE = " GPLv2 "
2010-12-02 10:59:02 +00:00
LIC_FILES_CHKSUM = " file://COPYING;md5=751419260aa954499f7abaabaa882bbe "
2011-06-10 08:11:41 +00:00
PR = " r126 "
INHIBIT_DEFAULT_DEPS = " 1 "
2005-08-31 10:45:47 +00:00
2007-09-02 14:00:52 +00:00
SRC_URI = " file://functions \
file : / / halt \
2005-08-31 10:45:47 +00:00
file : / / umountfs \
file : / / devpts . sh \
file : / / devpts \
file : / / hostname . sh \
file : / / mountall . sh \
2008-06-13 14:20:37 +00:00
file : / / banner . sh \
file : / / finish . sh \
2005-08-31 10:45:47 +00:00
file : / / bootmisc . sh \
file : / / mountnfs . sh \
file : / / reboot \
file : / / checkfs . sh \
file : / / single \
file : / / sendsigs \
file : / / urandom \
2008-08-01 11:30:57 +00:00
file : / / rmnologin . sh \
2005-08-31 10:45:47 +00:00
file : / / checkroot . sh \
file : / / umountnfs . sh \
file : / / sysfs . sh \
file : / / device_table . txt \
file : / / populate - volatile . sh \
2006-11-21 12:19:17 +00:00
file : / / volatiles \
2010-12-02 10:59:02 +00:00
file : / / save - rtc . sh \
file : / / GPLv2 . patch "
2005-08-31 10:45:47 +00:00
2007-09-02 14:00:52 +00:00
SRC_URI_append_arm = " file://alignment.sh "
2005-08-31 10:45:47 +00:00
KERNEL_VERSION = " "
2011-04-27 16:34:17 +00:00
HALTARGS ? = " -d -f "
do_configure ( ) {
sed - i - e " s:SED_HALTARGS:${HALTARGS}:g " $ { WORKDIR } / halt
sed - i - e " s:SED_HALTARGS:${HALTARGS}:g " $ { WORKDIR } / reboot
}
2005-08-31 10:45:47 +00:00
do_install ( ) {
#
# Create directories and install device independent scripts
#
2007-09-02 14:00:52 +00:00
install - d $ { D } $ { sysconfdir } / init . d
install - d $ { D } $ { sysconfdir } / rcS . d
install - d $ { D } $ { sysconfdir } / rc0 . d
install - d $ { D } $ { sysconfdir } / rc1 . d
install - d $ { D } $ { sysconfdir } / rc2 . d
install - d $ { D } $ { sysconfdir } / rc3 . d
install - d $ { D } $ { sysconfdir } / rc4 . d
install - d $ { D } $ { sysconfdir } / rc5 . d
install - d $ { D } $ { sysconfdir } / rc6 . d
install - d $ { D } $ { sysconfdir } / default
install - d $ { D } $ { sysconfdir } / default / volatiles
2005-08-31 10:45:47 +00:00
2008-08-01 12:55:16 +00:00
install - m 0644 $ { WORKDIR } / functions $ { D } $ { sysconfdir } / init . d
2005-08-31 10:45:47 +00:00
install - m 0755 $ { WORKDIR } / bootmisc . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / checkroot . sh $ { D } $ { sysconfdir } / init . d
2008-08-01 11:30:57 +00:00
# install - m 0755 $ { WORKDIR } / finish . sh $ { D } $ { sysconfdir } / init . d
2005-08-31 10:45:47 +00:00
install - m 0755 $ { WORKDIR } / halt $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / hostname . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / mountall . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / mountnfs . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / reboot $ { D } $ { sysconfdir } / init . d
2008-08-01 11:30:57 +00:00
install - m 0755 $ { WORKDIR } / rmnologin . sh $ { D } $ { sysconfdir } / init . d
2005-08-31 10:45:47 +00:00
install - m 0755 $ { WORKDIR } / sendsigs $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / single $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / umountnfs . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / urandom $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / devpts . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / devpts $ { D } $ { sysconfdir } / default
install - m 0755 $ { WORKDIR } / sysfs . sh $ { D } $ { sysconfdir } / init . d
install - m 0755 $ { WORKDIR } / populate - volatile . sh $ { D } $ { sysconfdir } / init . d
2007-09-02 14:00:52 +00:00
install - m 0755 $ { WORKDIR } / save - rtc . sh $ { D } $ { sysconfdir } / init . d
2005-08-31 10:45:47 +00:00
install - m 0644 $ { WORKDIR } / volatiles $ { D } $ { sysconfdir } / default / volatiles / 00 _ core
if [ " ${TARGET_ARCH} " = " arm " ] ; then
install - m 0755 $ { WORKDIR } / alignment . sh $ { D } $ { sysconfdir } / init . d
fi
#
# Install device dependent scripts
#
2008-06-13 14:20:37 +00:00
install - m 0755 $ { WORKDIR } / banner . sh $ { D } $ { sysconfdir } / init . d / banner . sh
2005-08-31 10:45:47 +00:00
install - m 0755 $ { WORKDIR } / umountfs $ { D } $ { sysconfdir } / init . d / umountfs
#
# Create runlevel links
#
2008-08-01 11:30:57 +00:00
ln - sf . . / init . d / rmnologin . sh $ { D } $ { sysconfdir } / rc2 . d / S99rmnologin . sh
ln - sf . . / init . d / rmnologin . sh $ { D } $ { sysconfdir } / rc3 . d / S99rmnologin . sh
ln - sf . . / init . d / rmnologin . sh $ { D } $ { sysconfdir } / rc4 . d / S99rmnologin . sh
ln - sf . . / init . d / rmnologin . sh $ { D } $ { sysconfdir } / rc5 . d / S99rmnologin . sh
2005-08-31 10:45:47 +00:00
ln - sf . . / init . d / sendsigs $ { D } $ { sysconfdir } / rc6 . d / S20sendsigs
# ln - sf . . / init . d / urandom $ { D } $ { sysconfdir } / rc6 . d / S30urandom
ln - sf . . / init . d / umountnfs . sh $ { D } $ { sysconfdir } / rc6 . d / S31umountnfs . sh
2006-03-23 23:32:58 +00:00
ln - sf . . / init . d / umountfs $ { D } $ { sysconfdir } / rc6 . d / S40umountfs
2006-02-10 14:33:55 +00:00
# udev will run at S55 if installed
2005-08-31 10:45:47 +00:00
ln - sf . . / init . d / reboot $ { D } $ { sysconfdir } / rc6 . d / S90reboot
ln - sf . . / init . d / sendsigs $ { D } $ { sysconfdir } / rc0 . d / S20sendsigs
# ln - sf . . / init . d / urandom $ { D } $ { sysconfdir } / rc0 . d / S30urandom
ln - sf . . / init . d / umountnfs . sh $ { D } $ { sysconfdir } / rc0 . d / S31umountnfs . sh
2006-03-23 23:32:58 +00:00
ln - sf . . / init . d / umountfs $ { D } $ { sysconfdir } / rc0 . d / S40umountfs
2006-02-10 14:33:55 +00:00
# udev will run at S55 if installed
2005-08-31 10:45:47 +00:00
ln - sf . . / init . d / halt $ { D } $ { sysconfdir } / rc0 . d / S90halt
2006-11-21 12:19:17 +00:00
ln - sf . . / init . d / save - rtc . sh $ { D } $ { sysconfdir } / rc0 . d / S25save - rtc . sh
2007-09-02 14:00:52 +00:00
ln - sf . . / init . d / save - rtc . sh $ { D } $ { sysconfdir } / rc6 . d / S25save - rtc . sh
2008-06-13 14:20:37 +00:00
ln - sf . . / init . d / banner . sh $ { D } $ { sysconfdir } / rcS . d / S02banner . sh
2005-08-31 10:45:47 +00:00
ln - sf . . / init . d / checkroot . sh $ { D } $ { sysconfdir } / rcS . d / S10checkroot . sh
# ln - sf . . / init . d / checkfs . sh $ { D } $ { sysconfdir } / rcS . d / S30checkfs . sh
ln - sf . . / init . d / mountall . sh $ { D } $ { sysconfdir } / rcS . d / S35mountall . sh
ln - sf . . / init . d / hostname . sh $ { D } $ { sysconfdir } / rcS . d / S39hostname . sh
ln - sf . . / init . d / mountnfs . sh $ { D } $ { sysconfdir } / rcS . d / S45mountnfs . sh
ln - sf . . / init . d / bootmisc . sh $ { D } $ { sysconfdir } / rcS . d / S55bootmisc . sh
# ln - sf . . / init . d / urandom $ { D } $ { sysconfdir } / rcS . d / S55urandom
2008-08-01 11:30:57 +00:00
# ln - sf . . / init . d / finish . sh $ { D } $ { sysconfdir } / rcS . d / S99finish . sh
2005-08-31 10:45:47 +00:00
# udev will run at S04 if installed
2008-06-13 14:20:37 +00:00
ln - sf . . / init . d / sysfs . sh $ { D } $ { sysconfdir } / rcS . d / S03sysfs . sh
2005-08-31 10:45:47 +00:00
ln - sf . . / init . d / populate - volatile . sh $ { D } $ { sysconfdir } / rcS . d / S37populate - volatile . sh
ln - sf . . / init . d / devpts . sh $ { D } $ { sysconfdir } / rcS . d / S38devpts . sh
if [ " ${TARGET_ARCH} " = " arm " ] ; then
2008-06-13 14:20:37 +00:00
ln - sf . . / init . d / alignment . sh $ { D } $ { sysconfdir } / rcS . d / S06alignment . sh
2005-08-31 10:45:47 +00:00
fi
install - m 0755 $ { WORKDIR } / device_table . txt $ { D } $ { sysconfdir } / device_table
}