Browse Source

Improved mkinitamfs to install the tool and the modules, if there is any

git-svn-id: svn://svn.opensde.net/opensde/package/branches/udev@21269 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
c871ef12a5
  1. 18
      base/mkinitramfs/mkinitramfs.conf

18
base/mkinitramfs/mkinitramfs.conf

@ -1,11 +1,11 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../mkinitrd/mkinitrd.conf
# Copyright (C) 2007 The OpenSDE Project
#
#
# Filename: package/.../mkinitramfs/mkinitramfs.conf
# Copyright (C) 2007 - 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
#
# 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; version 2 of the License. A copy of the
@ -18,3 +18,11 @@ libdir=$libdir/mkinitrd
makeopt=
makeinstopt=
hook_add postmake 5 'mkinitrd_install'
mkinitrd_install() {
install -v -m 755 "$confdir/mkinitramfs.sh" "$root$sbindir/mkinitramfs"
for x in $( ls -1d "$confdir/files"/* 2> /dev/null ); do
cp -vf "$x" "$root$libdir/"
done
}

Loading…
Cancel
Save