diff options
Diffstat (limited to 'sys-kernel/dracut/files/dracut-002-add-missing-functions.patch')
-rw-r--r-- | sys-kernel/dracut/files/dracut-002-add-missing-functions.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/sys-kernel/dracut/files/dracut-002-add-missing-functions.patch b/sys-kernel/dracut/files/dracut-002-add-missing-functions.patch deleted file mode 100644 index 1b51e3b1de71..000000000000 --- a/sys-kernel/dracut/files/dracut-002-add-missing-functions.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 5e5ec023bedc14d709f1d5f8e2803ba171b05daa Mon Sep 17 00:00:00 2001 -From: Harald Hoyer <harald@redhat.com> -Date: Fri, 18 Sep 2009 09:08:23 +0200 -Subject: [PATCH] dracut-gencmdline: add missing functions - ---- - dracut-gencmdline | 33 +++++++++++++++++++++++++++++++++ - 1 files changed, 33 insertions(+), 0 deletions(-) - -diff --git a/dracut-gencmdline b/dracut-gencmdline -index bab102f..f3cbee1 100755 ---- a/dracut-gencmdline -+++ b/dracut-gencmdline -@@ -19,6 +19,39 @@ - # - #. /usr/libexec/initrd-functions - -+IF_verbose="" -+function set_verbose() { -+ case $1 in -+ 1|true|yes|on) -+ IF_verbose="-v" -+ ;; -+ 0|false|no|off) -+ IF_verbose="" -+ ;; -+ esac -+} -+ -+function is_verbose() { -+ [ -n "$IF_verbose" ] && return 0 -+ return 1 -+} -+ -+function get_verbose() { -+ echo "$IF_verbose" -+ is_verbose -+} -+ -+ -+function get_numeric_dev() { -+( -+ fmt="%d:%d" -+ if [ "$1" == "hex" ]; then -+ fmt="%x:%x" -+ fi -+ ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }' -+) 2>/dev/null -+} -+ - - function error() { - echo "$@" >&2 --- -1.6.3.3 - |