[oe-commits] org.oe.dev Initial commit for a number of oplinux and oplinux-uclibc specific configs for base-files, netbase, sysvinit and

ifaistos commit openembedded-commits at lists.openembedded.org
Mon Mar 19 08:35:24 UTC 2007


Initial commit for a number of oplinux and oplinux-uclibc specific configs for base-files, netbase, sysvinit and 
initscripts

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 412ed26aa5981edbb54c3ee57c2665a80d7ae122
ViewMTN: http://monotone.openembedded.org/revision.psp?id=412ed26aa5981edbb54c3ee57c2665a80d7ae122
Files:
1
packages/base-files/base-files/oplinux
packages/base-files/base-files/oplinux-uclibc
packages/initscripts/initscripts-1.0/oplinux
packages/initscripts/initscripts-1.0/oplinux-uclibc
packages/netbase/netbase/oplinux
packages/netbase/netbase/oplinux-uclibc
packages/sysvinit/sysvinit/oplinux
packages/sysvinit/sysvinit/oplinux-uclibc
packages/base-files/base-files/oplinux/issue
packages/base-files/base-files/oplinux/issue.net
packages/base-files/base-files/oplinux/motd
packages/base-files/base-files/oplinux-uclibc/issue
packages/base-files/base-files/oplinux-uclibc/issue.net
packages/base-files/base-files/oplinux-uclibc/motd
packages/initscripts/initscripts-1.0/oplinux/checkroot.sh
packages/initscripts/initscripts-1.0/oplinux-uclibc/checkroot.sh
packages/netbase/netbase/oplinux/interfaces
packages/netbase/netbase/oplinux/options
packages/netbase/netbase/oplinux-uclibc/interfaces
packages/netbase/netbase/oplinux-uclibc/options
packages/sysvinit/sysvinit/oplinux/inittab
packages/sysvinit/sysvinit/oplinux-uclibc/inittab
packages/base-files/base-files_3.0.14.bb
packages/initscripts/initscripts_1.0.bb
packages/netbase/netbase_4.21.bb
packages/sysvinit/sysvinit_2.86.bb
mtn:execute
true
Diffs:

#
# mt diff -r9a2657a46f12fd0b41d5567720fb6d968cbc27fc -r412ed26aa5981edbb54c3ee57c2665a80d7ae122
#
# 
# 
# add_dir "packages/base-files/base-files/oplinux"
# 
# add_dir "packages/base-files/base-files/oplinux-uclibc"
# 
# add_dir "packages/initscripts/initscripts-1.0/oplinux"
# 
# add_dir "packages/initscripts/initscripts-1.0/oplinux-uclibc"
# 
# add_dir "packages/netbase/netbase/oplinux"
# 
# add_dir "packages/netbase/netbase/oplinux-uclibc"
# 
# add_dir "packages/sysvinit/sysvinit/oplinux"
# 
# add_dir "packages/sysvinit/sysvinit/oplinux-uclibc"
# 
# add_file "packages/base-files/base-files/oplinux/issue"
#  content [ba840d0e304ea7b7b9867190a95134878fc8c8b7]
# 
# add_file "packages/base-files/base-files/oplinux/issue.net"
#  content [dedc9f4c594bf5fb82af5db4b566880427f55665]
# 
# add_file "packages/base-files/base-files/oplinux/motd"
#  content [1718aa68a4c5d94138f8abb97281d9dd928e69a2]
# 
# add_file "packages/base-files/base-files/oplinux-uclibc/issue"
#  content [282da2577844841b2a285d9d3f1618eb090dfd2d]
# 
# add_file "packages/base-files/base-files/oplinux-uclibc/issue.net"
#  content [5f6b70b70139139eb37f7250f0a4f39225e29d5e]
# 
# add_file "packages/base-files/base-files/oplinux-uclibc/motd"
#  content [1fdfba87459f975421c16d4290384bdba423d5d6]
# 
# add_file "packages/initscripts/initscripts-1.0/oplinux/checkroot.sh"
#  content [1089e636166baff58820c9c2dcded5de0c18df0a]
# 
# add_file "packages/initscripts/initscripts-1.0/oplinux-uclibc/checkroot.sh"
#  content [1089e636166baff58820c9c2dcded5de0c18df0a]
# 
# add_file "packages/netbase/netbase/oplinux/interfaces"
#  content [aabd462ba3c3c63e37836c3f3b79b7f292f30539]
# 
# add_file "packages/netbase/netbase/oplinux/options"
#  content [6ca0c7e68287340de05ef8cbe0d6b3138b2c949a]
# 
# add_file "packages/netbase/netbase/oplinux-uclibc/interfaces"
#  content [aabd462ba3c3c63e37836c3f3b79b7f292f30539]
# 
# add_file "packages/netbase/netbase/oplinux-uclibc/options"
#  content [6ca0c7e68287340de05ef8cbe0d6b3138b2c949a]
# 
# add_file "packages/sysvinit/sysvinit/oplinux/inittab"
#  content [2cdd779d7f0733dbdde40ef08d4a486b23ee46ea]
# 
# add_file "packages/sysvinit/sysvinit/oplinux-uclibc/inittab"
#  content [2cdd779d7f0733dbdde40ef08d4a486b23ee46ea]
# 
# patch "packages/base-files/base-files_3.0.14.bb"
#  from [93b06d0ebecb5694ff785acb30284a047aeb19ec]
#    to [b777ad6aa43458739c45bb125f4ae942fb0f0d6d]
# 
# patch "packages/initscripts/initscripts_1.0.bb"
#  from [189c1aa3756fdfb70ed595cbd77721bea10159d7]
#    to [b4af32cf9c4d715a01338817a81d32468a046417]
# 
# patch "packages/netbase/netbase_4.21.bb"
#  from [88a3f7328215c23ef708a7e17fdc3cf5ff37ada3]
#    to [4a00786291a28c5069f8f2f8abf5b6648c9d01d4]
# 
# patch "packages/sysvinit/sysvinit_2.86.bb"
#  from [218890bfbeb763ccdb3603b9c77ac9816ea7d3eb]
#    to [06b9e536d37b0e13f885c569b186d470e69d9722]
# 
#   set "packages/initscripts/initscripts-1.0/oplinux/checkroot.sh"
#  attr "mtn:execute"
# value "true"
# 
#   set "packages/initscripts/initscripts-1.0/oplinux-uclibc/checkroot.sh"
#  attr "mtn:execute"
# value "true"
# 
============================================================
--- packages/base-files/base-files/oplinux/issue	ba840d0e304ea7b7b9867190a95134878fc8c8b7
+++ packages/base-files/base-files/oplinux/issue	ba840d0e304ea7b7b9867190a95134878fc8c8b7
@@ -0,0 +1,10 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   /
+|   |   |       |  |   |  .---.-----.--.--.\      /
+|   |   |   .---'  |   '--|   |     |  |  |/      \
+|       |   |      |      |   |  |  |     |   /\   \
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+
+The OPLinux distribution  \l
+
============================================================
--- packages/base-files/base-files/oplinux/issue.net	dedc9f4c594bf5fb82af5db4b566880427f55665
+++ packages/base-files/base-files/oplinux/issue.net	dedc9f4c594bf5fb82af5db4b566880427f55665
@@ -0,0 +1,11 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   /
+|   |   |       |  |   |  .---.-----.--.--.\      /
+|   |   |   .---'  |   '--|   |     |  |  |/      \
+|       |   |      |      |   |  |  |     |   /\   \
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+
+The OPLinux distribution %h
+
+
============================================================
--- packages/base-files/base-files/oplinux/motd	1718aa68a4c5d94138f8abb97281d9dd928e69a2
+++ packages/base-files/base-files/oplinux/motd	1718aa68a4c5d94138f8abb97281d9dd928e69a2
@@ -0,0 +1,8 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   / 
+|   |   |       |  |   |  .---.-----.--.--.\      /  
+|   |   |   .---'  |   '--|   |     |  |  |/      \  
+|       |   |      |      |   |  |  |     |   /\   \ 
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+
============================================================
--- packages/base-files/base-files/oplinux-uclibc/issue	282da2577844841b2a285d9d3f1618eb090dfd2d
+++ packages/base-files/base-files/oplinux-uclibc/issue	282da2577844841b2a285d9d3f1618eb090dfd2d
@@ -0,0 +1,14 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   /
+|   |   |       |  |   |  .---.-----.--.--.\      /
+|   |   |   .---'  |   '--|   |     |  |  |/      \
+|       |   |      |      |   |  |  |     |   /\   \
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+         .--.--.-----.--. .--.-----.-----.
+         |  |  |   __|  | |  |  -- |   __|
+         |     |     |  '-|  |  -- |     |
+         '-----'-----'----'--'-----'-----'
+
+The OPLinux-uclibc distribution  \l
+
============================================================
--- packages/base-files/base-files/oplinux-uclibc/issue.net	5f6b70b70139139eb37f7250f0a4f39225e29d5e
+++ packages/base-files/base-files/oplinux-uclibc/issue.net	5f6b70b70139139eb37f7250f0a4f39225e29d5e
@@ -0,0 +1,16 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   /
+|   |   |       |  |   |  .---.-----.--.--.\      /
+|   |   |   .---'  |   '--|   |     |  |  |/      \
+|       |   |      |      |   |  |  |     |   /\   \
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+         .--.--.-----.--. .--.-----.-----.
+         |  |  |   __|  | |  |  -- |   __|
+         |     |     |  '-|  |  -- |     |
+         '-----'-----'----'--'-----'-----'
+
+
+The OPLinux-uclibc distribution %h
+
+
============================================================
--- packages/base-files/base-files/oplinux-uclibc/motd	1fdfba87459f975421c16d4290384bdba423d5d6
+++ packages/base-files/base-files/oplinux-uclibc/motd	1fdfba87459f975421c16d4290384bdba423d5d6
@@ -0,0 +1,12 @@
+.-------.-------.  .---.  .---.          .---.  .---.
+|       |   __  |  |   |  '---'           \   \/   / 
+|   |   |       |  |   |  .---.-----.--.--.\      /  
+|   |   |   .---'  |   '--|   |     |  |  |/      \  
+|       |   |      |      |   |  |  |     |   /\   \ 
+'-------'---'      '------'---'--'--'-----'--'  '---'
+=====================================================
+         .--.--.-----.--. .--.-----.-----.
+         |  |  |   __|  | |  |  -- |   __|
+         |     |     |  '-|  |  -- |     |
+         '-----'-----'----'--'-----'-----'
+
============================================================
--- packages/initscripts/initscripts-1.0/oplinux/checkroot.sh	1089e636166baff58820c9c2dcded5de0c18df0a
+++ packages/initscripts/initscripts-1.0/oplinux/checkroot.sh	1089e636166baff58820c9c2dcded5de0c18df0a
@@ -0,0 +1,201 @@
+#
+# checkroot.sh	Check to root filesystem.
+#
+# Version:	@(#)checkroot.sh  2.84  25-Jan-2002  miquels at cistron.nl
+#
+
+. /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
+
+#
+# Ensure that bdflush (update) is running before any major I/O is
+# performed (the following fsck is a good example of such activity :).
+#
+test -x /sbin/update && update
+
+#
+# Read /etc/fstab.
+#
+exec 9>&0 </etc/fstab
+rootmode=rw
+rootopts=rw
+test "$ENABLE_ROOTFS_FSCK" = yes && rootcheck="yes" || rootcheck="no"
+swap_on_md=no
+devfs=
+while read fs mnt type opts dump pass junk
+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"
+
+	# Currently we do not care about the other entries
+	if test "$mnt" = "/"
+	then
+		#echo "[$fs] [$mnt] [$type] [$opts] [$dump] [$pass] [$junk]"
+
+		rootopts="$opts"		
+		roottype="$type"
+
+		#The "spinner" is broken on busybox sh	
+		TERM=dumb
+			
+		test "$pass" = 0 -o "$pass" = "" && rootcheck=no
+		
+		# Enable fsck for ext2 and ext3 rootfs, disable for everything else				
+		case "$type" in
+		ext2|ext3)	rootcheck=yes;;
+		*)		rootcheck=no;;
+		esac
+		
+		if test "$rootcheck" = yes
+		then
+			if ! test -x "/sbin/fsck.${roottype}"
+			then
+				echo -e "\n * * * WARNING: /sbin/fsck.${roottype} is missing! * * *\n"
+				rootcheck=no
+			fi
+		fi
+		
+		case "$opts" in
+			ro|ro,*|*,ro|*,ro,*)
+				rootmode=ro
+				;;
+		esac
+	fi
+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.
+#
+doswap=no
+test -d /proc/1 || mount -n /proc
+case "`uname -r`" in
+	2.[0123].*)
+		if test $swap_on_md = yes && grep -qs resync /proc/mdstat
+		then
+			test "$VERBOSE" != no && echo "Not activating swap - RAID array resyncing"
+		else
+			doswap=yes
+		fi
+		;;
+	*)
+		doswap=yes
+		;;
+esac
+if test $doswap = yes
+then
+	test "$VERBOSE" != no && echo "Activating swap"
+	swapon -a 2> /dev/null
+fi
+
+#
+# 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.
+#	This part is only needed if the rootfs was mounted ro.
+#
+
+if [ $(grep "/dev/root" /proc/mounts | awk '{print $4}') = rw ]; then
+        exit 0
+fi
+
+
+echo "Remounting root file system..."
+mount -n -o remount,$rootmode /
+if test "$rootmode" = rw
+then
+	if test ! -L /etc/mtab
+	then
+		rm -f /etc/mtab~ /etc/nologin
+		: > /etc/mtab
+	fi
+	mount -f -o remount /
+	mount -f /proc
+	test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs"
+fi
+
+: exit 0
============================================================
--- packages/initscripts/initscripts-1.0/oplinux-uclibc/checkroot.sh	1089e636166baff58820c9c2dcded5de0c18df0a
+++ packages/initscripts/initscripts-1.0/oplinux-uclibc/checkroot.sh	1089e636166baff58820c9c2dcded5de0c18df0a
@@ -0,0 +1,201 @@
+#
+# checkroot.sh	Check to root filesystem.
+#
+# Version:	@(#)checkroot.sh  2.84  25-Jan-2002  miquels at cistron.nl
+#
+
+. /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
+
+#
+# Ensure that bdflush (update) is running before any major I/O is
+# performed (the following fsck is a good example of such activity :).
+#
+test -x /sbin/update && update
+
+#
+# Read /etc/fstab.
+#
+exec 9>&0 </etc/fstab
+rootmode=rw
+rootopts=rw
+test "$ENABLE_ROOTFS_FSCK" = yes && rootcheck="yes" || rootcheck="no"
+swap_on_md=no
+devfs=
+while read fs mnt type opts dump pass junk
+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"
+
+	# Currently we do not care about the other entries
+	if test "$mnt" = "/"
+	then
+		#echo "[$fs] [$mnt] [$type] [$opts] [$dump] [$pass] [$junk]"
+
+		rootopts="$opts"		
+		roottype="$type"
+
+		#The "spinner" is broken on busybox sh	
+		TERM=dumb
+			
+		test "$pass" = 0 -o "$pass" = "" && rootcheck=no
+		
+		# Enable fsck for ext2 and ext3 rootfs, disable for everything else				
+		case "$type" in
+		ext2|ext3)	rootcheck=yes;;
+		*)		rootcheck=no;;
+		esac
+		
+		if test "$rootcheck" = yes
+		then
+			if ! test -x "/sbin/fsck.${roottype}"
+			then
+				echo -e "\n * * * WARNING: /sbin/fsck.${roottype} is missing! * * *\n"
+				rootcheck=no
+			fi
+		fi
+		
+		case "$opts" in
+			ro|ro,*|*,ro|*,ro,*)
+				rootmode=ro
+				;;
+		esac
+	fi
+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.
+#
+doswap=no
+test -d /proc/1 || mount -n /proc
+case "`uname -r`" in
+	2.[0123].*)
+		if test $swap_on_md = yes && grep -qs resync /proc/mdstat
+		then
+			test "$VERBOSE" != no && echo "Not activating swap - RAID array resyncing"
+		else
+			doswap=yes
+		fi
+		;;
+	*)
+		doswap=yes
+		;;
+esac
+if test $doswap = yes
+then
+	test "$VERBOSE" != no && echo "Activating swap"
+	swapon -a 2> /dev/null
+fi
+
+#
+# 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.
+%s
>>> DIFF TRUNCATED @ 16K






More information about the Openembedded-commits mailing list