From cb8c93e797f6664678b5a7fd746d984a3e907067 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Fri, 8 Aug 2008 21:03:29 +0000 Subject: gdm needs a subdirectory with specific permissions to run properly (extended the testmkd function for chown,mod settings) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1994 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/etc/functions | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'initramfs/initrd-stuff/etc/functions') diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index a142f5f2..13753cb4 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -396,6 +396,12 @@ echo "fileget via $fileprot from $fileserv/$cfgfile finished" >/tmp/file-done # to recreate directories in union mounts testmkd () { test -d $1 || mkdir -p $1 >/dev/null 2>&1 + for i in "$2" "$3" ; do + echo "$i"|grep -E "^[0-9]{3,4}$" >/dev/null 2>&1 && \ + chmod "$i" $1 >/dev/null 2>&1 + echo "$i"|grep -E ":." >/dev/null 2>&1 && \ + chown "$i" $1 >/dev/null 2>&1 + done } ############################################################################# -- cgit v1.2.3-55-g7522