]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
[PATCH 29/50] Add echoer script
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 13 Feb 2009 12:42:40 +0000 (04:42 -0800)
committerDave Jones <davej@redhat.com>
Mon, 16 Feb 2009 18:56:41 +0000 (13:56 -0500)
Makefile
dracut
echoer [new file with mode: 0755]

index b3704e7667a5934ec02697457b01063bed28a197..a4d1348f3c7c4c6c75013a2752312be2ad652be7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ install:
        install -m 0755 init $(DESTDIR)/usr/libexec/dracut/init
        install -m 0755 switch_root $(DESTDIR)/usr/libexec/dracut/switch_root
        install -m 0755 dracut-functions $(DESTDIR)/usr/libexec/dracut/functions
+       install -m 0755 echoer $(DESTDIR)/usr/libexec/dracut/echoer
        mkdir $(DESTDIR)/usr/libexec/dracut/rules.d
        for rule in rules.d/*.rules ; do install -m 0644 $$rule $(DESTDIR)/usr/libexec/dracut/rules.d ; done
 
diff --git a/dracut b/dracut
index 630b78b5f38f53fe3a137ed7570bcfe2e0dadee1..cade0e9f851faa0a0e9c2b263f774e8481873d3c 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -36,6 +36,7 @@ fi
 initfile=$dsrc/init
 switchroot=$dsrc/switch_root
 rulesdir=$dsrc/rules.d
+echoer=$dsrc/echoer
 
 initdir=$(mktemp -d -t initramfs.XXXXXX)
 trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
@@ -108,6 +109,7 @@ fi
 # install our files
 cp $initfile "$initdir/init"
 cp $switchroot "$initdir/sbin/switch_root"
+cp $echoer "$initdir/echoer"
 
 # and create some directory structure
 for d in etc proc sys sysroot dev/pts; do mkdir -p "$initdir/$d"; done
diff --git a/echoer b/echoer
new file mode 100755 (executable)
index 0000000..249155d
--- /dev/null
+++ b/echoer
@@ -0,0 +1,4 @@
+#!/bin/bash
+target=$1
+shift
+echo "$@" >"$target"
\ No newline at end of file