summaryrefslogtreecommitdiffstats
path: root/initramfs/mkdxsinitrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-05-07 23:58:38 +0200
committerDirk von Suchodoletz2007-05-07 23:58:38 +0200
commit02ac851375a7ba50ee16cc429030a9c8a056fd8f (patch)
tree95712e2f32f0afbc974e3b24d5782d2a8784b763 /initramfs/mkdxsinitrd
parentSome more devices are needed (not automatically produced by mdev) ... (diff)
downloadcore-02ac851375a7ba50ee16cc429030a9c8a056fd8f.tar.gz
core-02ac851375a7ba50ee16cc429030a9c8a056fd8f.tar.xz
core-02ac851375a7ba50ee16cc429030a9c8a056fd8f.zip
Ugly legacy removed (do not read stage3 functions for mkdxsinitrd),
thanks to Nico pointing that out ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1027 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/mkdxsinitrd')
-rwxr-xr-xinitramfs/mkdxsinitrd7
1 files changed, 4 insertions, 3 deletions
diff --git a/initramfs/mkdxsinitrd b/initramfs/mkdxsinitrd
index 6557995f..33355310 100755
--- a/initramfs/mkdxsinitrd
+++ b/initramfs/mkdxsinitrd
@@ -57,14 +57,15 @@ SLX_CONFIG_PATH=@@@SLX_CONFIG_PATH@@@
. $SLX_CONFIG_PATH/settings.default
[ -f $SLX_CONFIG_PATH/settings.local ] && \
. $SLX_CONFIG_PATH/settings.local
-# read the common functions file
-[ -e ${SLX_SHARE_PATH}/initramfs/etc/functions ] && \
- . ${SLX_SHARE_PATH}/initramfs/etc/functions
#########################################################################
# End of global variable declaration, nothing needed to be changed at
# default below that line
+testmkd () {
+ test -d $1 || mkdir -p $1 >/dev/null 2>&1
+}
+
usage()
{
echo -e "mkdxsinitrd [-dh] [-k kernel version] [-i path/file] \