Browse Source

sysfiles: patched etc/rc.d/functions-ansi.in to work over ash when doing embedded builds

legacy/next/gcc
Alejandro Mery 16 years ago
parent
commit
c78fb0d0e2
2 changed files with 44 additions and 2 deletions
  1. +38
    -0
      overlay.d/sysfiles-embedded/etc_rc.d_functions.in.patch
  2. +6
    -2
      overlay.in

+ 38
- 0
overlay.d/sysfiles-embedded/etc_rc.d_functions.in.patch

@ -0,0 +1,38 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/overlay.d/sysfiles-embedded/etc_rc.d_functions.in.patch
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ./etc/rc.d/functions-ansi.in.orig 2008-09-20 19:30:36.000000000 +0000
+++ ./etc/rc.d/functions-ansi.in 2008-09-20 19:30:38.000000000 +0000
@@ -16,8 +16,8 @@
#
ECHO='echo -e'
-ESC='\e' # \e or \033
-BELL='\a' # \a or 07
+ESC='\033' # \e or \033
+BELL='\07' # \a or 07
ART_SUCCESS=" OK "
ART_FAILURE=" FAIL"
@@ -49,7 +49,7 @@
[ -n "$columns" ] || columns=80
# fill with dots with an "arrow" pointing down at the end.
- for (( x=1; x<columns; x++ )); do
+ for x in $(seq 1 $columns); do
$ECHO -n '.'
done
$ECHO -n "$MOVE_LEFT_NEXT$ART_NEXT\r"

+ 6
- 2
overlay.in

@ -15,8 +15,7 @@
mnemosyne_overlay_dir="$base/target/$SDECFG_TRG_MNEMOSYNE/overlay.d"
mnemosyne_overlay=
mnemosyne_overlay_apply()
{
mnemosyne_overlay_apply() {
local x=
for x; do
overlay_apply "$x"
@ -37,6 +36,11 @@ busybox)
var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/busybox-init"
fi
;;
sysfiles)
if [ "$SDECFG_TRG_MNEMOSYNE_FOOTPRINT" = embedded ]; then
var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/$pkg-embedded"
fi
;;
esac
unset mnemosyne_overlay_dir

Loading…
Cancel
Save