[ostree] gnomeos: Import copy of initscripts from Poky edison release



commit f51e4ee772248f60a9167142903ee585c9ab4f8c
Author: Colin Walters <walters verbum org>
Date:   Tue Nov 15 16:31:33 2011 -0500

    gnomeos: Import copy of initscripts from Poky edison release

 .../initscripts/initscripts-1.0/GPLv2.patch        |  347 ++++++++++++++++++++
 .../initscripts/initscripts-1.0/arm/alignment.sh   |   13 +
 .../initscripts/initscripts-1.0/banner.sh          |   24 ++
 .../initscripts/initscripts-1.0/bootmisc.sh        |   78 +++++
 .../initscripts/initscripts-1.0/checkfs.sh         |   49 +++
 .../initscripts/initscripts-1.0/checkroot.sh       |  137 ++++++++
 .../initscripts/initscripts-1.0/device_table.txt   |  197 +++++++++++
 .../initscripts/initscripts-1.0/devpts             |    5 +
 .../initscripts/initscripts-1.0/devpts.sh          |   28 ++
 .../initscripts/initscripts-1.0/finish.sh          |   14 +
 .../initscripts/initscripts-1.0/functions          |   44 +++
 .../recipies-core/initscripts/initscripts-1.0/halt |   29 ++
 .../initscripts/initscripts-1.0/hostname.sh        |   13 +
 .../initscripts/initscripts-1.0/mountall.sh        |   38 +++
 .../initscripts/initscripts-1.0/mountnfs.sh        |   83 +++++
 .../initscripts-1.0/populate-volatile.sh           |  197 +++++++++++
 .../initscripts/initscripts-1.0/reboot             |   15 +
 .../initscripts/initscripts-1.0/rmnologin.sh       |   20 ++
 .../initscripts/initscripts-1.0/save-rtc.sh        |   13 +
 .../initscripts/initscripts-1.0/sendsigs           |   21 ++
 .../initscripts/initscripts-1.0/single             |   24 ++
 .../initscripts/initscripts-1.0/sysfs.sh           |   19 +
 .../initscripts/initscripts-1.0/umountfs           |   24 ++
 .../initscripts/initscripts-1.0/umountnfs.sh       |   32 ++
 .../initscripts/initscripts-1.0/urandom            |   46 +++
 .../initscripts/initscripts-1.0/volatiles          |   39 +++
 .../recipies-core/initscripts/initscripts_1.0.bb   |  130 ++++++++
 27 files changed, 1679 insertions(+), 0 deletions(-)
---
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/GPLv2.patch b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/GPLv2.patch
new file mode 100644
index 0000000..1ee8181
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/GPLv2.patch
@@ -0,0 +1,347 @@
+Upstream-Status: Inappropriate [licensing]
+
+diff --git a/COPYING b/COPYING
+new file mode 100644
+index 0000000..d511905
+--- /dev/null
++++ b/COPYING
+@@ -0,0 +1,339 @@
++		    GNU GENERAL PUBLIC LICENSE
++		       Version 2, June 1991
++
++ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
++ Everyone is permitted to copy and distribute verbatim copies
++ of this license document, but changing it is not allowed.
++
++			    Preamble
++
++  The licenses for most software are designed to take away your
++freedom to share and change it.  By contrast, the GNU General Public
++License is intended to guarantee your freedom to share and change free
++software--to make sure the software is free for all its users.  This
++General Public License applies to most of the Free Software
++Foundation's software and to any other program whose authors commit to
++using it.  (Some other Free Software Foundation software is covered by
++the GNU Lesser General Public License instead.)  You can apply it to
++your programs, too.
++
++  When we speak of free software, we are referring to freedom, not
++price.  Our General Public Licenses are designed to make sure that you
++have the freedom to distribute copies of free software (and charge for
++this service if you wish), that you receive source code or can get it
++if you want it, that you can change the software or use pieces of it
++in new free programs; and that you know you can do these things.
++
++  To protect your rights, we need to make restrictions that forbid
++anyone to deny you these rights or to ask you to surrender the rights.
++These restrictions translate to certain responsibilities for you if you
++distribute copies of the software, or if you modify it.
++
++  For example, if you distribute copies of such a program, whether
++gratis or for a fee, you must give the recipients all the rights that
++you have.  You must make sure that they, too, receive or can get the
++source code.  And you must show them these terms so they know their
++rights.
++
++  We protect your rights with two steps: (1) copyright the software, and
++(2) offer you this license which gives you legal permission to copy,
++distribute and/or modify the software.
++
++  Also, for each author's protection and ours, we want to make certain
++that everyone understands that there is no warranty for this free
++software.  If the software is modified by someone else and passed on, we
++want its recipients to know that what they have is not the original, so
++that any problems introduced by others will not reflect on the original
++authors' reputations.
++
++  Finally, any free program is threatened constantly by software
++patents.  We wish to avoid the danger that redistributors of a free
++program will individually obtain patent licenses, in effect making the
++program proprietary.  To prevent this, we have made it clear that any
++patent must be licensed for everyone's free use or not licensed at all.
++
++  The precise terms and conditions for copying, distribution and
++modification follow.
++
++		    GNU GENERAL PUBLIC LICENSE
++   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
++
++  0. This License applies to any program or other work which contains
++a notice placed by the copyright holder saying it may be distributed
++under the terms of this General Public License.  The "Program", below,
++refers to any such program or work, and a "work based on the Program"
++means either the Program or any derivative work under copyright law:
++that is to say, a work containing the Program or a portion of it,
++either verbatim or with modifications and/or translated into another
++language.  (Hereinafter, translation is included without limitation in
++the term "modification".)  Each licensee is addressed as "you".
++
++Activities other than copying, distribution and modification are not
++covered by this License; they are outside its scope.  The act of
++running the Program is not restricted, and the output from the Program
++is covered only if its contents constitute a work based on the
++Program (independent of having been made by running the Program).
++Whether that is true depends on what the Program does.
++
++  1. You may copy and distribute verbatim copies of the Program's
++source code as you receive it, in any medium, provided that you
++conspicuously and appropriately publish on each copy an appropriate
++copyright notice and disclaimer of warranty; keep intact all the
++notices that refer to this License and to the absence of any warranty;
++and give any other recipients of the Program a copy of this License
++along with the Program.
++
++You may charge a fee for the physical act of transferring a copy, and
++you may at your option offer warranty protection in exchange for a fee.
++
++  2. You may modify your copy or copies of the Program or any portion
++of it, thus forming a work based on the Program, and copy and
++distribute such modifications or work under the terms of Section 1
++above, provided that you also meet all of these conditions:
++
++    a) You must cause the modified files to carry prominent notices
++    stating that you changed the files and the date of any change.
++
++    b) You must cause any work that you distribute or publish, that in
++    whole or in part contains or is derived from the Program or any
++    part thereof, to be licensed as a whole at no charge to all third
++    parties under the terms of this License.
++
++    c) If the modified program normally reads commands interactively
++    when run, you must cause it, when started running for such
++    interactive use in the most ordinary way, to print or display an
++    announcement including an appropriate copyright notice and a
++    notice that there is no warranty (or else, saying that you provide
++    a warranty) and that users may redistribute the program under
++    these conditions, and telling the user how to view a copy of this
++    License.  (Exception: if the Program itself is interactive but
++    does not normally print such an announcement, your work based on
++    the Program is not required to print an announcement.)
++
++These requirements apply to the modified work as a whole.  If
++identifiable sections of that work are not derived from the Program,
++and can be reasonably considered independent and separate works in
++themselves, then this License, and its terms, do not apply to those
++sections when you distribute them as separate works.  But when you
++distribute the same sections as part of a whole which is a work based
++on the Program, the distribution of the whole must be on the terms of
++this License, whose permissions for other licensees extend to the
++entire whole, and thus to each and every part regardless of who wrote it.
++
++Thus, it is not the intent of this section to claim rights or contest
++your rights to work written entirely by you; rather, the intent is to
++exercise the right to control the distribution of derivative or
++collective works based on the Program.
++
++In addition, mere aggregation of another work not based on the Program
++with the Program (or with a work based on the Program) on a volume of
++a storage or distribution medium does not bring the other work under
++the scope of this License.
++
++  3. You may copy and distribute the Program (or a work based on it,
++under Section 2) in object code or executable form under the terms of
++Sections 1 and 2 above provided that you also do one of the following:
++
++    a) Accompany it with the complete corresponding machine-readable
++    source code, which must be distributed under the terms of Sections
++    1 and 2 above on a medium customarily used for software interchange; or,
++
++    b) Accompany it with a written offer, valid for at least three
++    years, to give any third party, for a charge no more than your
++    cost of physically performing source distribution, a complete
++    machine-readable copy of the corresponding source code, to be
++    distributed under the terms of Sections 1 and 2 above on a medium
++    customarily used for software interchange; or,
++
++    c) Accompany it with the information you received as to the offer
++    to distribute corresponding source code.  (This alternative is
++    allowed only for noncommercial distribution and only if you
++    received the program in object code or executable form with such
++    an offer, in accord with Subsection b above.)
++
++The source code for a work means the preferred form of the work for
++making modifications to it.  For an executable work, complete source
++code means all the source code for all modules it contains, plus any
++associated interface definition files, plus the scripts used to
++control compilation and installation of the executable.  However, as a
++special exception, the source code distributed need not include
++anything that is normally distributed (in either source or binary
++form) with the major components (compiler, kernel, and so on) of the
++operating system on which the executable runs, unless that component
++itself accompanies the executable.
++
++If distribution of executable or object code is made by offering
++access to copy from a designated place, then offering equivalent
++access to copy the source code from the same place counts as
++distribution of the source code, even though third parties are not
++compelled to copy the source along with the object code.
++
++  4. You may not copy, modify, sublicense, or distribute the Program
++except as expressly provided under this License.  Any attempt
++otherwise to copy, modify, sublicense or distribute the Program is
++void, and will automatically terminate your rights under this License.
++However, parties who have received copies, or rights, from you under
++this License will not have their licenses terminated so long as such
++parties remain in full compliance.
++
++  5. You are not required to accept this License, since you have not
++signed it.  However, nothing else grants you permission to modify or
++distribute the Program or its derivative works.  These actions are
++prohibited by law if you do not accept this License.  Therefore, by
++modifying or distributing the Program (or any work based on the
++Program), you indicate your acceptance of this License to do so, and
++all its terms and conditions for copying, distributing or modifying
++the Program or works based on it.
++
++  6. Each time you redistribute the Program (or any work based on the
++Program), the recipient automatically receives a license from the
++original licensor to copy, distribute or modify the Program subject to
++these terms and conditions.  You may not impose any further
++restrictions on the recipients' exercise of the rights granted herein.
++You are not responsible for enforcing compliance by third parties to
++this License.
++
++  7. If, as a consequence of a court judgment or allegation of patent
++infringement or for any other reason (not limited to patent issues),
++conditions are imposed on you (whether by court order, agreement or
++otherwise) that contradict the conditions of this License, they do not
++excuse you from the conditions of this License.  If you cannot
++distribute so as to satisfy simultaneously your obligations under this
++License and any other pertinent obligations, then as a consequence you
++may not distribute the Program at all.  For example, if a patent
++license would not permit royalty-free redistribution of the Program by
++all those who receive copies directly or indirectly through you, then
++the only way you could satisfy both it and this License would be to
++refrain entirely from distribution of the Program.
++
++If any portion of this section is held invalid or unenforceable under
++any particular circumstance, the balance of the section is intended to
++apply and the section as a whole is intended to apply in other
++circumstances.
++
++It is not the purpose of this section to induce you to infringe any
++patents or other property right claims or to contest validity of any
++such claims; this section has the sole purpose of protecting the
++integrity of the free software distribution system, which is
++implemented by public license practices.  Many people have made
++generous contributions to the wide range of software distributed
++through that system in reliance on consistent application of that
++system; it is up to the author/donor to decide if he or she is willing
++to distribute software through any other system and a licensee cannot
++impose that choice.
++
++This section is intended to make thoroughly clear what is believed to
++be a consequence of the rest of this License.
++
++  8. If the distribution and/or use of the Program is restricted in
++certain countries either by patents or by copyrighted interfaces, the
++original copyright holder who places the Program under this License
++may add an explicit geographical distribution limitation excluding
++those countries, so that distribution is permitted only in or among
++countries not thus excluded.  In such case, this License incorporates
++the limitation as if written in the body of this License.
++
++  9. The Free Software Foundation may publish revised and/or new versions
++of the General Public License from time to time.  Such new versions will
++be similar in spirit to the present version, but may differ in detail to
++address new problems or concerns.
++
++Each version is given a distinguishing version number.  If the Program
++specifies a version number of this License which applies to it and "any
++later version", you have the option of following the terms and conditions
++either of that version or of any later version published by the Free
++Software Foundation.  If the Program does not specify a version number of
++this License, you may choose any version ever published by the Free Software
++Foundation.
++
++  10. If you wish to incorporate parts of the Program into other free
++programs whose distribution conditions are different, write to the author
++to ask for permission.  For software which is copyrighted by the Free
++Software Foundation, write to the Free Software Foundation; we sometimes
++make exceptions for this.  Our decision will be guided by the two goals
++of preserving the free status of all derivatives of our free software and
++of promoting the sharing and reuse of software generally.
++
++			    NO WARRANTY
++
++  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
++FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
++OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
++PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
++OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
++TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
++PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
++REPAIR OR CORRECTION.
++
++  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
++WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
++REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
++INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
++OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
++TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
++YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
++PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
++POSSIBILITY OF SUCH DAMAGES.
++
++		     END OF TERMS AND CONDITIONS
++
++	    How to Apply These Terms to Your New Programs
++
++  If you develop a new program, and you want it to be of the greatest
++possible use to the public, the best way to achieve this is to make it
++free software which everyone can redistribute and change under these terms.
++
++  To do so, attach the following notices to the program.  It is safest
++to attach them to the start of each source file to most effectively
++convey the exclusion of warranty; and each file should have at least
++the "copyright" line and a pointer to where the full notice is found.
++
++    <one line to give the program's name and a brief idea of what it does.>
++    Copyright (C) <year>  <name of author>
++
++    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.
++
++    This program 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 this program; if not, write to the Free Software Foundation, Inc.,
++    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
++
++Also add information on how to contact you by electronic and paper mail.
++
++If the program is interactive, make it output a short notice like this
++when it starts in an interactive mode:
++
++    Gnomovision version 69, Copyright (C) year name of author
++    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
++    This is free software, and you are welcome to redistribute it
++    under certain conditions; type `show c' for details.
++
++The hypothetical commands `show w' and `show c' should show the appropriate
++parts of the General Public License.  Of course, the commands you use may
++be called something other than `show w' and `show c'; they could even be
++mouse-clicks or menu items--whatever suits your program.
++
++You should also get your employer (if you work as a programmer) or your
++school, if any, to sign a "copyright disclaimer" for the program, if
++necessary.  Here is a sample; alter the names:
++
++  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
++  `Gnomovision' (which makes passes at compilers) written by James Hacker.
++
++  <signature of Ty Coon>, 1 April 1989
++  Ty Coon, President of Vice
++
++This General Public License does not permit incorporating your program into
++proprietary programs.  If your program is a subroutine library, you may
++consider it more useful to permit linking proprietary applications with the
++library.  If this is what you want to do, use the GNU Lesser General
++Public License instead of this License.
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/arm/alignment.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/arm/alignment.sh
new file mode 100644
index 0000000..b577b9a
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/arm/alignment.sh
@@ -0,0 +1,13 @@
+#!/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
+fi
+
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/banner.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/banner.sh
new file mode 100644
index 0000000..9e2b091
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/banner.sh
@@ -0,0 +1,24 @@
+#!/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
+fi
+
+if ( > /dev/tty0 ) 2>/dev/null; then
+    vtmaster=/dev/tty0
+elif ( > /dev/vc/0 ) 2>/dev/null; then
+    vtmaster=/dev/vc/0
+elif ( > /dev/console ) 2>/dev/null; then
+    vtmaster=/dev/console
+else
+    vtmaster=/dev/null
+fi
+echo > $vtmaster
+echo "Please wait: booting..." > $vtmaster
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/bootmisc.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/bootmisc.sh
new file mode 100755
index 0000000..03fd67c
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/bootmisc.sh
@@ -0,0 +1,78 @@
+### 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
+#
+# Put a nologin file in /etc to prevent people from logging in before
+# system startup is complete.
+#
+if test "$DELAYLOGIN" = yes
+then
+  echo "System bootup in progress - please wait" > /etc/nologin
+  cp /etc/nologin /etc/nologin.boot
+fi
+
+#
+# Set pseudo-terminal access permissions.
+#
+if test -c /dev/ttyp0
+then
+	chmod 666 /dev/tty[p-za-e][0-9a-f]
+	chown root:tty /dev/tty[p-za-e][0-9a-f]
+fi
+
+#
+# Apply /proc settings if defined
+#
+SYSCTL_CONF="/etc/sysctl.conf"
+if [ -f "${SYSCTL_CONF}" ]
+then
+	if [ -x "/sbin/sysctl" ]
+	then
+		/sbin/sysctl -p "${SYSCTL_CONF}"
+	else
+		echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>."
+	fi
+fi
+
+#
+# Update /etc/motd.
+#
+if test "$EDITMOTD" != no
+then
+	uname -a > /etc/motd.tmp
+	sed 1d /etc/motd >> /etc/motd.tmp
+	mv /etc/motd.tmp /etc/motd
+fi
+
+#
+# This is as good a place as any for a sanity check
+# /tmp should be a symlink to /var/tmp to cut down on the number
+# of mounted ramdisks.
+if test ! -L /tmp && test -d /var/tmp
+then
+	rm -rf /tmp
+	ln -sf /var/tmp /tmp
+fi
+
+# Set the system clock from hardware clock
+# If the timestamp is 1 day or more recent than the current time,
+# use the timestamp instead.
+/etc/init.d/hwclock.sh start
+if test -e /etc/timestamp
+then
+	SYSTEMDATE=`date  -u +%2m%2d%2H%2M%4Y`
+	read TIMESTAMP < /etc/timestamp
+        NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)`
+        if [ $NEEDUPDATE -eq 1 ]; then 
+		date -u $TIMESTAMP
+		/etc/init.d/hwclock.sh stop
+	fi
+fi
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkfs.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkfs.sh
new file mode 100755
index 0000000..91897d4
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkfs.sh
@@ -0,0 +1,49 @@
+### 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
+
+#
+# Check the rest of the filesystems.
+#
+if test ! -f /fastboot
+then
+    if test -f /forcefsck
+    then
+        force="-f"
+    else
+        force=""
+    fi
+    if test "$FSCKFIX"  = yes
+    then
+	fix="-y"
+    else
+	fix="-a"
+    fi
+    spinner="-C"
+    case "$TERM" in
+	dumb|network|unknown|"") spinner="" ;;
+    esac
+    test "`uname -m`" = "s390" && spinner="" # This should go away
+    test "$VERBOSE" != no && echo "Checking all filesystems..."
+    fsck $spinner -R -A $fix $force
+    if test "$?" -gt 1
+    then
+      echo
+      echo "fsck failed.  Please repair manually."
+      echo
+      echo "CONTROL-D will exit from this shell and continue system startup."
+      echo
+      # Start a single user shell on the console
+      /sbin/sulogin $CONSOLE
+    fi
+fi
+rm -f /fastboot /forcefsck
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkroot.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkroot.sh
new file mode 100755
index 0000000..02697ce
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/checkroot.sh
@@ -0,0 +1,137 @@
+### BEGIN INIT INFO
+# Provides:          checkroot
+# Required-Start:    udev
+# Required-Stop:     
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: Check to root file system.
+### END INIT INFO
+
+. /etc/default/rcS
+
+#
+# Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned
+# from this script *before anything else* with a timeout, like SCO does.
+#
+test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE
+
+#
+# Read /etc/fstab.
+#
+exec 9< /etc/fstab
+rootmode=rw
+rootopts=rw
+rootcheck=no
+swap_on_md=no
+devfs=
+while read fs mnt type opts dump pass junk <&9
+do
+	case "$fs" in
+		""|\#*)
+			continue;
+			;;
+		/dev/md*)
+			# Swap on md device.
+			test "$type" = swap && swap_on_md=yes
+			;;
+		/dev/*)
+			;;
+		*)
+			# Might be a swapfile.
+			test "$type" = swap && swap_on_md=yes
+			;;
+	esac
+	test "$type" = devfs && devfs="$fs"
+	test "$mnt" != / && continue
+	rootopts="$opts"
+	test "$pass" = 0 -o "$pass" = "" && rootcheck=no
+	case "$opts" in
+		ro|ro,*|*,ro|*,ro,*)
+			rootmode=ro
+			;;
+	esac
+done
+exec 0>&9 9>&-
+
+#
+# Activate the swap device(s) in /etc/fstab. This needs to be done
+# before fsck, since fsck can be quite memory-hungry.
+#
+test "$VERBOSE" != no && echo "Activating swap"
+swapon -a 2> /dev/null
+
+#
+# Check the root filesystem.
+#
+if test -f /fastboot || test $rootcheck = no
+then
+  test $rootcheck = yes && echo "Fast boot, no filesystem check"
+else
+  #
+  # Ensure that root is quiescent and read-only before fsck'ing.
+  #
+  mount -n -o remount,ro /
+  if test $? = 0
+  then
+    if test -f /forcefsck
+    then
+	force="-f"
+    else
+	force=""
+    fi
+    if test "$FSCKFIX" = yes
+    then
+	fix="-y"
+    else
+	fix="-a"
+    fi
+    spinner="-C"
+    case "$TERM" in
+        dumb|network|unknown|"") spinner="" ;;
+    esac
+    test `uname -m` = s390 && spinner="" # This should go away
+    test "$VERBOSE" != no && echo "Checking root filesystem..."
+    fsck $spinner $force $fix /
+    #
+    # If there was a failure, drop into single-user mode.
+    #
+    # NOTE: "failure" is defined as exiting with a return code of
+    # 2 or larger.  A return code of 1 indicates that filesystem
+    # errors were corrected but that the boot may proceed.
+    #
+    if test "$?" -gt 1
+    then
+      # Surprise! Re-directing from a HERE document (as in
+      # "cat << EOF") won't work, because the root is read-only.
+      echo
+      echo "fsck failed.  Please repair manually and reboot.  Please note"
+      echo "that the root filesystem is currently mounted read-only.  To"
+      echo "remount it read-write:"
+      echo
+      echo "   # mount -n -o remount,rw /"
+      echo
+      echo "CONTROL-D will exit from this shell and REBOOT the system."
+      echo
+      # Start a single user shell on the console
+      /sbin/sulogin $CONSOLE
+      reboot -f
+    fi
+  else
+    echo "*** ERROR!  Cannot fsck root fs because it is not mounted read-only!"
+    echo
+  fi
+fi
+
+#
+#	If the root filesystem was not marked as read-only in /etc/fstab,
+#	remount the rootfs rw but do not try to change mtab because it
+#	is on a ro fs until the remount succeeded. Then clean up old mtabs
+#	and finally write the new mtab.
+#
+mount -n -o remount,$rootmode /
+if test "$rootmode" = rw
+then
+	ln -sf /proc/mounts /dev/mtab
+fi
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/device_table.txt b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/device_table.txt
new file mode 100644
index 0000000..a302c5a
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/device_table.txt
@@ -0,0 +1,197 @@
+#/dev/		d	775	0	0	-	-	-	-	-
+#/dev/msys	d	775	0	0	-	-	-	-	-
+#/dev/pts	d	775	0	0	-	-	-	-	-
+#/var		d	775	0	0	-	-	-	-	-
+/boot/var/empty	d	755	0	3	-	-	-	-
+/dev/apm_bios	c	660	0	46	10	134	-	-	-
+/dev/audio	c	660	0	29	14	4	-	-	-
+/dev/audio1	c	660	0	29	14	20	-	-	-
+/dev/audio2	c	660	0	29	14	36	-	-	-
+/dev/audio3	c	660	0	29	14	52	-	-	-
+/dev/bty	c	644	0	0	60	0	0	1	5
+/dev/sharp_fl	c	640	0	44	254	0	-	-	-
+/dev/console	c	660	0	5	5	1	-	-
+/dev/cusa0	c	640	0	0	205	5	-	-	-
+/dev/cusa1	c	640	0	0	205	6	-	-	-
+/dev/cusa2	c	640	0	0	205	7	-	-	-
+/dev/dsp	c	660	0	29	14	3	-	-	-
+/dev/dsp1	c	660	0	29	14	19	-	-	-
+/dev/dsp2	c	660	0	29	14	35	-	-	-
+/dev/dsp3	c	660	0	29	14	51	-	-	-
+/dev/fb		c	660	0	44	29	0	0	32	2
+/dev/fb0autodetect	c	660	0	44	29	1	-	-	-
+/dev/fb0current	c	660	0	44	29	0	-	-	-
+#/dev/fb1	c	660	0	44	29	32	-	-	-
+/dev/fb1autodetect	c	660	0	44	29	33	-	-	-
+/dev/fb1current	c	660	0	44	29	32	-	-	-
+/dev/full	c	666	0	7	-	-	-
+/dev/hda	b	660	0	6	3	0	-	-	-
+/dev/hda	b	660	0	6	3	1	1	1	20
+/dev/hdb	b	660	0	6	3	64	-	-	-
+/dev/hdb	b	660	0	6	3	65	1	1	20
+/dev/hdc	b	660	0	6	22	0	-	-	-
+/dev/hdc	b	660	0	6	22	1	1	1	20
+/dev/initctl	p	600	0	0	-	-	-	-
+/dev/i2c0	c	660	0	0	89	0	-	-	-
+/dev/inportbm	c	660	0	0	10	2	-	-	-
+/dev/input/event c	660	0	0	13	64	0	1       20
+/dev/ircomm0	c	640	0	0	161	0	-	-	-
+/dev/jbm	c	660	0	0	10	4	-	-	-
+/dev/kmem	c	640	0	15	1	2	-	-	-
+/dev/lirc	c	660	0	5	61	0	-	-	-
+/dev/logibm	c	660	0	0	10	0	-	-	-
+/dev/loop0	b	660	0	11	7	0	-	-	-
+/dev/loop1	b	660	0	11	7	1	-	-	-
+/dev/mem	c	640	0	15	1	1	-	-	-
+/dev/mixer	c	666	0	0	14	0	-	-	-
+/dev/mixer1	c	666	0	0	14	16	-	-	-
+/dev/mixer2	c	666	0	0	14	32	-	-	-
+/dev/mixer3	c	666	0	0	14	48	-	-	-
+/dev/mmcda	b	640	0	0	60	0	-	-	-
+/dev/mmcda1	b	640	0	0	60	1	-	-	-
+/dev/mmcda2	b	640	0	0	60	2	-	-	-
+/dev/msys/fla	b	660	0	11	100	0	-	-	-
+/dev/msys/fla1	b	660	0	11	100	1	-	-	-
+/dev/msys/fla2	b	660	0	11	100	2	-	-	-
+/dev/msys/fla3	b	660	0	11	100	3	-	-	-
+/dev/msys/fla4	b	660	0	11	100	4	-	-	-
+/dev/msys/flb	b	660	0	11	100	64	-	-	-
+/dev/msys/flb1	b	660	0	11	100	65	-	-	-
+/dev/msys/flb2	b	660	0	11	100	66	-	-	-
+/dev/msys/flb3	b	660	0	11	100	67	-	-	-
+/dev/msys/flb4	b	660	0	11	100	68	-	-	-
+/dev/mtd	c	660	0	6	90	0	0	2	8
+/dev/mtdblock	b	640	0	0	31	0	0	1	8
+/dev/nst0	c	664	0	11	9	128	-	-	-
+/dev/nst0a	c	664	0	11	9	224	-	-	-
+/dev/nst0l	c	664	0	11	9	160	-	-	-
+/dev/nst0m	c	664	0	11	9	192	-	-	-
+/dev/nst1	c	664	0	11	9	129	-	-	-
+/dev/nst1a	c	664	0	11	9	225	-	-	-
+/dev/nst1l	c	664	0	11	9	161	-	-	-
+/dev/nst1m	c	664	0	11	9	193	-	-	-
+/dev/null	c	666	0	0	1	3	-	-	-
+/dev/par0	c	660	0	7	6	0	-	-	-
+/dev/par1	c	660	0	7	6	1	-	-	-
+/dev/par2	c	660	0	7	6	2	-	-	-
+/dev/port	c	640	0	15	1	4	-	-	-
+/dev/ppp	c	640	0	0	108	0	-	-	-
+/dev/psaux	c	660	0	0	10	1	-	-	-
+/dev/ptmx	c	666	0	5	5	2	-	-	-
+/dev/ptya0	c	660	0	5	2	176	-	-	-
+/dev/ptya1	c	660	0	5	2	177	-	-	-
+/dev/ptya2	c	660	0	5	2	178	-	-	-
+/dev/ptya3	c	660	0	5	2	179	-	-	-
+/dev/ptya4	c	660	0	5	2	180	-	-	-
+/dev/ptya5	c	660	0	5	2	181	-	-	-
+/dev/ptya6	c	660	0	5	2	182	-	-	-
+/dev/ptya7	c	660	0	5	2	183	-	-	-
+/dev/ptya8	c	660	0	5	2	184	-	-	-
+/dev/ptya9	c	660	0	5	2	185	-	-	-
+/dev/ptyaa	c	660	0	5	2	186	-	-	-
+/dev/ptyab	c	660	0	5	2	187	-	-	-
+/dev/ptyac	c	660	0	5	2	188	-	-	-
+/dev/ptyad	c	660	0	5	2	189	-	-	-
+/dev/ptyae	c	660	0	5	2	190	-	-	-
+/dev/ptyaf	c	660	0	5	2	191	-	-	-
+/dev/ram	b	640	0	0	1	0	0	1	4
+/dev/random	c	444	0	0	1	8	-	-	-
+/dev/rfcomm0	c	660	0	0	216	0	-	-	-
+/dev/rfcomm1	c	660	0	0	216	1	-	-	-
+/dev/rfcomm2	c	660	0	0	216	2	-	-	-
+/dev/rfcomm3	c	660	0	0	216	3	-	-	-
+/dev/rfcomm4	c	660	0	0	216	4	-	-	-
+/dev/rfcomm5	c	660	0	0	216	5	-	-	-
+/dev/rfcomm6	c	660	0	0	216	6	-	-	-
+/dev/rfcomm7	c	660	0	0	216	7	-	-	-
+/dev/rfcomm8	c	660	0	0	216	8	-	-	-
+/dev/rfcomm9	c	660	0	0	216	9	-	-	-
+/dev/rfcomm10	c	660	0	0	216	10	-	-	-
+/dev/rfcomm11	c	660	0	0	216	11	-	-	-
+/dev/rfcomm12	c	660	0	0	216	12	-	-	-
+/dev/rfcomm13	c	660	0	0	216	13	-	-	-
+/dev/rfcomm14	c	660	0	0	216	14	-	-	-
+/dev/rfcomm15	c	660	0	0	216	15	-	-	-
+/dev/rmidi0	c	660	0	0	35	64	-	-	-
+/dev/rmidi1	c	660	0	0	35	65	-	-	-
+/dev/rmidi2	c	660	0	0	35	66	-	-	-
+/dev/rmidi3	c	660	0	0	35	67	-	-	-
+/dev/rtc	c	660	0	47	10	135	-	-	-
+/dev/scd0	b	660	0	6	11	0	-	-	-
+/dev/scd1	b	660	0	6	11	1	-	-	-
+/dev/sda	b	660	0	6	8	0	-	-	-
+/dev/sda1	b	660	0	6	8	1	-	-	-
+/dev/sda2	b	660	0	6	8	2	-	-	-
+/dev/sda3	b	660	0	6	8	3	-	-	-
+/dev/sda4	b	660	0	6	8	4	-	-	-
+/dev/sda5	b	660	0	6	8	5	-	-	-
+/dev/sda6	b	660	0	6	8	6	-	-	-
+/dev/sda7	b	660	0	6	8	7	-	-	-
+/dev/sda8	b	660	0	6	8	8	-	-	-
+/dev/sda9	b	660	0	6	8	9	-	-	-
+/dev/sdb	b	660	0	6	8	16	-	-	-
+/dev/sdb1	b	660	0	6	8	17	-	-	-
+/dev/sdb2	b	660	0	6	8	18	-	-	-
+/dev/sdb3	b	660	0	6	8	19	-	-	-
+/dev/sdb4	b	660	0	6	8	20	-	-	-
+/dev/sdb5	b	660	0	6	8	21	-	-	-
+/dev/sdb6	b	660	0	6	8	22	-	-	-
+/dev/sdb7	b	660	0	6	8	23	-	-	-
+/dev/sdb8	b	660	0	6	8	24	-	-	-
+/dev/sdb9	b	660	0	6	8	25	-	-	-
+/dev/sdc	b	660	0	6	8	32	-	-	-
+/dev/sdc1	b	660	0	6	8	33	-	-	-
+/dev/sdc2	b	660	0	6	8	34	-	-	-
+/dev/sdc3	b	660	0	6	8	35	-	-	-
+/dev/sdc4	b	660	0	6	8	36	-	-	-
+/dev/sdc5	b	660	0	6	8	37	-	-	-
+/dev/sdc6	b	660	0	6	8	38	-	-	-
+/dev/sdc7	b	660	0	6	8	39	-	-	-
+/dev/sdc8	b	660	0	6	8	40	-	-	-
+/dev/sdc9	b	660	0	6	8	41	-	-	-
+/dev/sd_slotstat	c	660	0	6	10	240	-	-	-
+/dev/sharp_audioctl	c	660	0	29	10	213	-	-	-
+/dev/sharp_buz	c	660	0	29	10	211	-	-	-
+/dev/sharp_kbdctl	c	660	0	45	10	214	-	-	-
+/dev/sharp_led	c	660	0	48	10	210	-	-	-
+/dev/sharp_ts	c	640	0	45	11	0	-	-	-
+/dev/smtpe0	c	640	0	0	35	128	-	-	-
+/dev/smtpe1	c	640	0	0	35	129	-	-	-
+/dev/smtpe2	c	640	0	0	35	130	-	-	-
+/dev/smtpe3	c	640	0	0	35	131	-	-	-
+/dev/sndstat	c	660	0	29	14	6	-	-	-
+/dev/snd/seq	c	660	0	0	116	1	-	-	-
+/dev/snd/timer	c	660	0	0	116	33	-	-	-
+/dev/snd/controlC0	c	660	0	0	116	0	-	-	-
+/dev/snd/controlC1	c	660	0	0	116	32	-	-	-
+/dev/snd/controlC2	c	660	0	0	116	64	-	-	-
+/dev/snd/controlC3	c	660	0	0	116	96	-	-	-
+/dev/snd/hwC0D0	c	660	0	0	116	4	-	-	-
+/dev/snd/hwC0D1	c	660	0	0	116	5	-	-	-
+/dev/snd/hwC0D2	c	660	0	0	116	6	-	-	-
+/dev/snd/hwC0D3	c	660	0	0	116	7	-	-	-
+/dev/snd/pcmC0D0c	c	660	0	0	116	24	-	-	-
+/dev/snd/pcmC0D0p	c	660	0	0	116	16	-	-	-
+/dev/snd/pcmC0D1c	c	660	0	0	116	25	-	-	-
+/dev/snd/pcmC0D1p	c	660	0	0	116	17	-	-	-
+/dev/snd/pcmC0D2c	c	660	0	0	116	26	-	-	-
+/dev/snd/pcmC0D2p	c	660	0	0	116	18	-	-	-
+/dev/snd/pcmC0D3c	c	660	0	0	116	27	-	-	-
+/dev/snd/pcmC0D3p	c	660	0	0	116	19	-	-	-
+/dev/st0	c	660	0	11	9	0	-	-	-
+/dev/st0a	c	660	0	11	9	96	-	-	-
+/dev/st0l	c	660	0	11	9	32	-	-	-
+/dev/st0m	c	660	0	11	9	64	-	-	-
+/dev/st1	c	660	0	11	9	1	-	-	-
+/dev/st1a	c	660	0	11	9	97	-	-	-
+/dev/st1l	c	660	0	11	9	33	-	-	-
+/dev/st1m	c	660	0	11	9	65	-	-	-
+/dev/tty	c	664	0	5	5	0	-	-	-
+/dev/tty	c	666	0	5	4	0	0	1	9
+/dev/ttyS	c	640	0	5	4	64	0	1	4
+/dev/ttySA	c	640	0	5	204	5	0	1	4
+/dev/ttyUSB	c	660	0	5	188	0	0	1	2
+/dev/urandom	c	644	0	0	1	9	-	-	-
+/dev/usbmouse	c	640	0	45	10	32	-	-	-
+/dev/zero	c	644	0	0	1	5	-	-	-
+/dev/input/mice	c	660	0	0	13	63	-	-	-
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts
new file mode 100644
index 0000000..4a0978b
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts
@@ -0,0 +1,5 @@
+# GID of the `tty' group
+TTYGRP=5
+ 
+# Set to 600 to have `mesg n' be the default
+TTYMODE=620
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts.sh
new file mode 100755
index 0000000..18202ad
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/devpts.sh
@@ -0,0 +1,28 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          devpts
+# Required-Start: udev
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: Mount /dev/pts file systems.
+### END INIT INFO
+
+. /etc/default/devpts
+
+if grep -q devpts /proc/filesystems
+then
+	#
+	#	Create multiplexor device.
+	#
+	test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2
+
+	#
+	#	Mount /dev/pts if needed.
+	#
+	if ! grep -q devpts /proc/mounts
+	then
+		mkdir -p /dev/pts
+		mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE}
+	fi
+fi
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/finish.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/finish.sh
new file mode 100755
index 0000000..183a384
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/finish.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          finish.sh
+# Required-Start:    $remote_fs rmnologin
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:
+# Short-Description: Finish system start
+# Description:       
+### END INIT INFO
+
+if ! test -e /etc/.configured; then
+	> /etc/.configured
+fi
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/functions b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/functions
new file mode 100644
index 0000000..dd7da2b
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/functions
@@ -0,0 +1,44 @@
+# -*-Shell-script-*-
+#
+# functions     This file contains functions to be used by most or all
+#               shell scripts in the /etc/init.d directory.
+#
+# NOTE: The pidofproc () doesn't support the process which is a script unless
+#       the pidof supports "-x" option. If you want to use it for such a
+#       process:
+#       1) If there is no "pidof -x", replace the "pidof $1" with another
+#          command like(for core-image-minimal):
+#            ps | awk '/'"$1"'/ {print $1}'
+#       Or
+#       2) If there is "pidof -x", replace "pidof" with "pidof -x".
+#
+# pidofproc - print the pid of a process
+# $1: the name of the process
+pidofproc () {
+
+	# pidof output null when no program is running, so no "2>/dev/null".
+	pid=`pidof $1`
+	status=$?
+	case $status in
+	0)
+		echo $pid
+		return 0
+		;;
+	127)
+		echo "ERROR: command pidof not found" >&2
+		exit 127
+		;;
+	*)
+		return $status
+		;;
+	esac
+}
+
+machine_id() { # return the machine ID
+	awk 'BEGIN { FS=": " } /Hardware/ \
+		{ gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
+}
+
+killproc() { # kill the named process(es)
+	pid=`pidofproc $1` && kill $pid
+}
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/halt b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/halt
new file mode 100755
index 0000000..021d9be
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/halt
@@ -0,0 +1,29 @@
+#! /bin/sh
+### 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
+
+# See if we need to cut the power.
+if test -x /etc/init.d/ups-monitor
+then
+	/etc/init.d/ups-monitor poweroff
+fi
+
+# Don't shut down drives if we're using RAID.
+hddown="-h"
+if grep -qs '^md.*active' /proc/mdstat
+then
+	hddown=""
+fi
+
+halt SED_HALTARGS -p $hddown
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/hostname.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/hostname.sh
new file mode 100755
index 0000000..4399ee7
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/hostname.sh
@@ -0,0 +1,13 @@
+### 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
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountall.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountall.sh
new file mode 100755
index 0000000..9d4f97b
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountall.sh
@@ -0,0 +1,38 @@
+### 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
+
+#
+# Mount local filesystems in /etc/fstab. For some reason, people
+# might want to mount "proc" several times, and mount -v complains
+# about this. So we mount "proc" filesystems without -v.
+#
+test "$VERBOSE" != no && echo "Mounting local filesystems..."
+mount -at nonfs,nosmbfs,noncpfs 2>/dev/null
+
+#
+# We might have mounted something over /dev, see if /dev/initctl is there.
+#
+if test ! -p /dev/initctl
+then
+	rm -f /dev/initctl
+	mknod -m 600 /dev/initctl p
+fi
+kill -USR1 1
+
+#
+# Execute swapon command again, in case we want to swap to
+# a file on a now mounted filesystem.
+#
+swapon -a 2> /dev/null
+
+: exit 0
+
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountnfs.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountnfs.sh
new file mode 100755
index 0000000..46c58b1
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -0,0 +1,83 @@
+### BEGIN INIT INFO
+# Provides:          mountnfs
+# Required-Start:    $local_fs $network $portmap
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+
+. /etc/default/rcS
+
+#
+#	Run in a subshell because of I/O redirection.
+#
+test -f /etc/fstab && (
+
+#
+#	Read through fstab line by line. If it is NFS, set the flag
+#	for mounting NFS filesystems. If any NFS partition is found and it
+#	not mounted with the nolock option, we start the portmapper.
+#
+portmap=no
+mount_nfs=no
+mount_smb=no
+mount_ncp=no
+while read device mountpt fstype options
+do
+	case "$device" in
+		""|\#*)
+			continue
+			;;
+	esac
+
+	case "$options" in
+		*noauto*)
+			continue
+			;;
+	esac
+
+	if test "$fstype" = nfs
+	then
+		mount_nfs=yes
+		case "$options" in
+			*nolock*)
+				;;
+			*)
+				portmap=yes
+				;;
+		esac
+	fi
+	if test "$fstype" = smbfs
+	then
+		mount_smb=yes
+	fi
+	if test "$fstype" = ncpfs
+	then
+		mount_ncp=yes
+	fi
+done
+
+exec 0>&1
+
+if test "$portmap" = yes
+then
+	if test -x /sbin/portmap
+	then
+		echo -n "Starting portmapper... "
+		start-stop-daemon --start --quiet --exec /sbin/portmap
+		sleep 2
+	fi
+fi
+
+if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
+then
+	echo "Mounting remote filesystems..."
+	test "$mount_nfs" = yes && mount -a -t nfs
+	test "$mount_smb" = yes && mount -a -t smbfs
+	test "$mount_ncp" = yes && mount -a -t ncpfs
+fi
+
+) < /etc/fstab
+
+: exit 0
+
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/populate-volatile.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/populate-volatile.sh
new file mode 100755
index 0000000..1813fd1
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/populate-volatile.sh
@@ -0,0 +1,197 @@
+#!/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
+
+CFGDIR="/etc/default/volatiles"
+TMPROOT="/var/tmp"
+COREDEF="00_core"
+
+[ "${VERBOSE}" != "no" ] && echo "Populating volatile Filesystems."
+
+create_file() {
+	EXEC=" 
+	touch \"$1\"; 
+	chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; 
+	chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 " 
+
+	test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache
+
+	[ -e "$1" ] && {
+	  [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping."
+	} || {
+	  eval $EXEC &
+	}
+}
+
+mk_dir() {
+	EXEC=" 
+	mkdir -p \"$1\"; 
+	chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; 
+	chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 "
+
+	test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache
+	
+	[ -e "$1" ] && {
+	  [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping."
+	} || {
+	  eval $EXEC &
+	}
+}
+
+link_file() {
+	EXEC="test -e \"$2\" -o -L $2 || ln -s \"$1\" \"$2\" >/dev/tty0 2>&1" 
+
+	test "$VOLATILE_ENABLE_CACHE" = yes && echo "	$EXEC" >> /etc/volatile.cache
+	
+	[ -e "$2" ] && {
+	  echo "Cannot create link over existing -${TNAME}-." >&2
+	} || {
+	  eval $EXEC &
+	}
+}
+
+check_requirements() {
+
+  cleanup() {
+    rm "${TMP_INTERMED}"
+    rm "${TMP_DEFINED}"
+    rm "${TMP_COMBINED}"
+    }
+    
+  CFGFILE="$1"
+
+  [ `basename "${CFGFILE}"` = "${COREDEF}" ] && return 0
+
+  TMP_INTERMED="${TMPROOT}/tmp.$$"
+  TMP_DEFINED="${TMPROOT}/tmpdefined.$$"
+  TMP_COMBINED="${TMPROOT}/tmpcombined.$$"
+
+
+  cat /etc/passwd | sed 's \(^:\)*: * \1@' | sort | uniq > "${TMP_DEFINED}"
+  cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 2 > "${TMP_INTERMED}"
+  cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}"
+
+  NR_DEFINED_USERS="`cat "${TMP_DEFINED}" | wc -l`"
+  NR_COMBINED_USERS="`cat "${TMP_COMBINED}" | wc -l`"
+
+  [ "${NR_DEFINED_USERS}" -ne "${NR_COMBINED_USERS}" ] && {
+    echo "Undefined users:"
+    diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>"
+    cleanup
+    return 1
+    }
+
+
+  cat /etc/group | sed 's \(^:\)*: * \1@' | sort | uniq > "${TMP_DEFINED}"
+  cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 3 > "${TMP_INTERMED}"
+  cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}"
+
+  NR_DEFINED_GROUPS="`cat "${TMP_DEFINED}" | wc -l`"
+  NR_COMBINED_GROUPS="`cat "${TMP_COMBINED}" | wc -l`"
+
+  [ "${NR_DEFINED_GROUPS}" -ne "${NR_COMBINED_GROUPS}" ] && {
+    echo "Undefined groups:"
+    diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>"
+    cleanup
+    return 1
+    }
+
+  # Add checks for required directories here
+
+  cleanup
+  return 0
+  }
+
+apply_cfgfile() {
+
+  CFGFILE="$1"
+
+  check_requirements "${CFGFILE}" || {
+    echo "Skipping ${CFGFILE}"
+    return 1
+    }
+
+  cat ${CFGFILE} | grep -v "^#" | \
+  while read LINE; do
+
+    eval `echo "$LINE" | sed -n "s/\(.*\)\ \(.*\) \(.*\)\ \(.*\)\ \(.*\)\ \(.*\)/TTYPE=\1 ; TUSER=\2; TGROUP=\3; TMODE=\4; TNAME=\5 TLTARGET=\6/p"`
+
+    [ "${VERBOSE}" != "no" ] && echo "Checking for -${TNAME}-."
+
+
+    [ "${TTYPE}" = "l" ] && {
+      TSOURCE="$TLTARGET"
+      [ -L "${TNAME}" ] || {
+        [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-."
+        link_file "${TSOURCE}" "${TNAME}" &
+        }
+      continue
+      }
+
+    [ -L "${TNAME}" ] && {
+      [ "${VERBOSE}" != "no" ] && echo "Found link."
+      NEWNAME=`ls -l "${TNAME}" | sed -e 's/^.*-> \(.*\)$/\1/'`
+      echo ${NEWNAME} | grep -v "^/" >/dev/null && {
+        TNAME="`echo ${TNAME} | sed -e 's \(.*\)/ * \1@'`/${NEWNAME}"
+        [ "${VERBOSE}" != "no" ] && echo "Converted relative linktarget to absolute path -${TNAME}-."
+        } || {
+        TNAME="${NEWNAME}"
+        [ "${VERBOSE}" != "no" ] && echo "Using absolute link target -${TNAME}-."
+        }
+      }
+
+    case "${TTYPE}" in
+      "f")  [ "${VERBOSE}" != "no" ] && echo "Creating file -${TNAME}-."
+            create_file "${TNAME}" &
+	    ;;
+      "d")  [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-."
+            mk_dir "${TNAME}" &
+	    # Add check to see if there's an entry in fstab to mount.
+	    ;;
+      *)    [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-."
+            continue
+	    ;;
+    esac
+
+
+    done
+
+  return 0
+
+  }
+
+clearcache=0
+exec 9</proc/cmdline
+while read line <&9
+do
+	case "$line" in
+		*clearcache*)  clearcache=1
+			       ;;
+		*)	       continue
+			       ;;
+	esac
+done
+exec 9>&-
+
+if test -e /etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" -a "x$clearcache" = "x0"
+then
+	sh /etc/volatile.cache
+else	
+	rm -f /etc/volatile.cache
+	for file in `ls -1 "${CFGDIR}" | sort`; do
+		apply_cfgfile "${CFGDIR}/${file}"
+	done
+fi
+
+if test -f /etc/ld.so.cache -a ! -f /var/run/ld.so.cache
+then
+	ln -s /etc/ld.so.cache /var/run/ld.so.cache
+fi
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/reboot b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/reboot
new file mode 100755
index 0000000..cf32e95
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/reboot
@@ -0,0 +1,15 @@
+#! /bin/sh
+### 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
+
+echo -n "Rebooting... "
+reboot SED_HALTARGS
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/rmnologin.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/rmnologin.sh
new file mode 100755
index 0000000..417efc2
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/rmnologin.sh
@@ -0,0 +1,20 @@
+#! /bin/sh
+### 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
+	rm -f /etc/nologin /etc/nologin.boot
+fi
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/save-rtc.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/save-rtc.sh
new file mode 100644
index 0000000..77aa11c
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/save-rtc.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          save-rtc
+# Required-Start:
+# Required-Stop:     $local_fs hwclock
+# Default-Start:     S
+# Default-Stop:      0 6
+# Short-Description: Store system clock into file
+# Description:       
+### END INIT INFO
+
+# Update the timestamp
+date -u +%2m%2d%2H%2M%4Y > /etc/timestamp
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sendsigs b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sendsigs
new file mode 100755
index 0000000..2b0f8f3
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sendsigs
@@ -0,0 +1,21 @@
+#! /bin/sh
+### 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
+
+# Kill all processes.
+echo "Sending all processes the TERM signal..."
+killall5 -15
+sleep 5
+echo "Sending all processes the KILL signal..."
+killall5 -9
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/single b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/single
new file mode 100755
index 0000000..0cad693
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/single
@@ -0,0 +1,24 @@
+#! /bin/sh
+### 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"
+
+# Kill all processes.
+echo "Sending all processes the TERM signal..."
+killall5 -15
+sleep 5
+echo "Sending all processes the KILL signal..."
+killall5 -9
+
+# We start update here, since we just killed it.
+test -x /sbin/update && update
+
+echo "Entering single-user mode..."
+exec init -t1 S
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sysfs.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sysfs.sh
new file mode 100644
index 0000000..be28bb3
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/sysfs.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          mountvirtfs
+# Required-Start:
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: Mount kernel virtual file systems.
+# Description:       Mount initial set of virtual filesystems the kernel
+#                    provides and that are required by everything.
+### END INIT INFO
+
+if [ -e /proc ] && ! [ -e /proc/mounts ]; then
+  mount -t proc proc /proc
+fi
+
+if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
+  mount sysfs /sys -t sysfs
+fi
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountfs b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountfs
new file mode 100755
index 0000000..6ad0e43
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountfs
@@ -0,0 +1,24 @@
+#! /bin/sh
+### 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
+
+echo "Deactivating swap..."
+swapoff -a
+
+# We leave /proc mounted.
+echo "Unmounting local filesystems..."
+grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram
+mount -o remount,ro /
+
+umount -f -a -r > /dev/null 2>&1
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountnfs.sh b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountnfs.sh
new file mode 100755
index 0000000..a4fb821
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/umountnfs.sh
@@ -0,0 +1,32 @@
+### 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
+
+# Write a reboot record to /var/log/wtmp before unmounting
+halt -w
+
+echo "Unmounting remote filesystems..."
+
+test -f /etc/fstab && (
+
+#
+#	Read through fstab line by line and unount network file systems
+#
+while read device mountpt fstype options
+do
+	if test "$fstype" = nfs ||  test "$fstype" = smbfs ||  test "$fstype" = ncpfs
+	then
+		umount -f $mountpt
+	fi
+done
+) < /etc/fstab
+
+: exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/urandom b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/urandom
new file mode 100755
index 0000000..b6d807c
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/urandom
@@ -0,0 +1,46 @@
+#! /bin/sh
+### 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
+
+case "$1" in
+	start|"")
+		test "$VERBOSE" != no && echo "Initializing random number generator..."
+		# Load and then save 512 bytes,
+		# which is the size of the entropy pool
+		if test -f /var/lib/urandom/random-seed
+		then
+			cat /var/lib/urandom/random-seed >/dev/urandom
+		fi
+		rm -f /var/lib/urandom/random-seed
+		umask 077
+		dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \
+			>/dev/null 2>&1 || echo "urandom start: failed."
+		umask 022
+		;;
+	stop)
+		# Carry a random seed from shut-down to start-up;
+		# see documentation in linux/drivers/char/random.c
+		test "$VERBOSE" != no && echo "Saving random seed..."
+		umask 077
+		dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \
+			>/dev/null 2>&1 || echo "urandom stop: failed."
+		;;
+	*)
+		echo "Usage: urandom {start|stop}" >&2
+		exit 1
+		;;
+esac
+
+exit 0
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/volatiles b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/volatiles
new file mode 100644
index 0000000..b2ae279
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts-1.0/volatiles
@@ -0,0 +1,39 @@
+# This configuration file lists filesystem objects that should get verified
+# during startup and be created if missing.
+#
+# Every line must either be a comment starting with #
+# or a definition of format:
+# <type> <owner> <group> <mode> <path> <linksource>
+# where the items are separated by whitespace !
+#
+# <type> : d|f|l : (d)irectory|(f)ile|(l)ink
+#
+# A linking example:
+# l root root 0777 /var/test /tmp/testfile
+# f root root 0644 /var/test none
+#
+# Understanding links:
+# When populate-volatile is to verify/create a directory or file, it will first
+# check it's existence. If a link is found to exist in the place of the target,
+# the path of the target is replaced with the target the link points to.
+# Thus, if a link is in the place to be verified, the object will be created
+# in the place the link points to instead.
+# This explains the order of "link before object" as in the example above, where
+# a link will be created at /var/test pointing to /tmp/testfile and due to this
+# link the file defined as /var/test will actually be created as /tmp/testfile.
+d root root 0755 /var/volatile/cache none
+d root root 1777 /var/volatile/lock none
+d root root 0755 /var/volatile/log none
+d root root 0755 /var/volatile/run none
+d root root 1777 /var/volatile/tmp none
+l root root 0755 /var/cache /var/volatile/cache
+l root root 1777 /var/lock /var/volatile/lock
+l root root 0755 /var/log /var/volatile/log
+l root root 0755 /var/run /var/volatile/run
+l root root 1777 /var/tmp /var/volatile/tmp
+d root root 0755 /var/lock/subsys none
+f root root 0664 /var/log/wtmp none
+f root root 0664 /var/run/utmp none
+l root root 0644 /etc/resolv.conf /var/run/resolv.conf
+f root root 0644 /var/run/resolv.conf none
+
diff --git a/gnomeos/yocto/recipies-core/initscripts/initscripts_1.0.bb b/gnomeos/yocto/recipies-core/initscripts/initscripts_1.0.bb
new file mode 100644
index 0000000..ffca817
--- /dev/null
+++ b/gnomeos/yocto/recipies-core/initscripts/initscripts_1.0.bb
@@ -0,0 +1,130 @@
+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."
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+PR = "r127"
+
+INHIBIT_DEFAULT_DEPS = "1"
+
+SRC_URI = "file://functions \
+           file://halt \
+           file://umountfs \
+           file://devpts.sh \
+           file://devpts \
+           file://hostname.sh \
+           file://mountall.sh \
+           file://banner.sh \
+           file://finish.sh \
+           file://bootmisc.sh \
+           file://mountnfs.sh \
+           file://reboot \
+           file://checkfs.sh \
+           file://single \
+           file://sendsigs \
+           file://urandom \
+           file://rmnologin.sh \
+           file://checkroot.sh \
+           file://umountnfs.sh \
+           file://sysfs.sh \
+           file://device_table.txt \
+           file://populate-volatile.sh \
+           file://volatiles \
+           file://save-rtc.sh \
+	   file://GPLv2.patch"
+
+SRC_URI_append_arm = " file://alignment.sh"
+
+KERNEL_VERSION = ""
+
+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
+}
+
+do_install () {
+#
+# Create directories and install device independent scripts
+#
+	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
+
+	install -m 0644    ${WORKDIR}/functions		${D}${sysconfdir}/init.d
+	install -m 0755    ${WORKDIR}/bootmisc.sh	${D}${sysconfdir}/init.d
+	install -m 0755    ${WORKDIR}/checkroot.sh	${D}${sysconfdir}/init.d
+#	install -m 0755    ${WORKDIR}/finish.sh		${D}${sysconfdir}/init.d
+	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
+	install -m 0755    ${WORKDIR}/rmnologin.sh	${D}${sysconfdir}/init.d
+	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
+	install -m 0755    ${WORKDIR}/save-rtc.sh	${D}${sysconfdir}/init.d
+	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
+#
+	install -m 0755 ${WORKDIR}/banner.sh	${D}${sysconfdir}/init.d/banner.sh
+	install -m 0755 ${WORKDIR}/umountfs	${D}${sysconfdir}/init.d/umountfs
+#
+# Create runlevel links
+#
+	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
+	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
+	ln -sf		../init.d/umountfs	${D}${sysconfdir}/rc6.d/S40umountfs
+	# udev will run at S55 if installed
+	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
+	ln -sf		../init.d/umountfs	${D}${sysconfdir}/rc0.d/S40umountfs
+	# udev will run at S55 if installed
+	ln -sf		../init.d/halt		${D}${sysconfdir}/rc0.d/S90halt
+	ln -sf		../init.d/save-rtc.sh	${D}${sysconfdir}/rc0.d/S25save-rtc.sh
+	ln -sf		../init.d/save-rtc.sh	${D}${sysconfdir}/rc6.d/S25save-rtc.sh
+	ln -sf		../init.d/banner.sh	${D}${sysconfdir}/rcS.d/S02banner.sh
+	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
+#	ln -sf		../init.d/finish.sh	${D}${sysconfdir}/rcS.d/S99finish.sh
+	ln -sf		../init.d/sysfs.sh	${D}${sysconfdir}/rcS.d/S02sysfs.sh
+	# udev will run at S03 if installed
+	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
+		ln -sf	../init.d/alignment.sh	${D}${sysconfdir}/rcS.d/S06alignment.sh
+	fi
+
+	install -m 0755		${WORKDIR}/device_table.txt		${D}${sysconfdir}/device_table
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]