summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-03-30 04:01:06 +0200
committermaximilian attems <max@stro.at>2008-03-30 04:05:11 +0200
commit0da6088ae11f77ef6fc2a9180c805d491f8bb8c4 (patch)
tree776a97208b0329f36c13794de6213e2d3d4bdfd6 /init
parent6c25b07c692fb34f735b049be6cac4da33125b6d (diff)
downloadinitramfs-tools-0da6088ae11f77ef6fc2a9180c805d491f8bb8c4.tar.gz
initramfs-tools-0da6088ae11f77ef6fc2a9180c805d491f8bb8c4.zip
init: Set proper permissions of /dev/console mknod fallback.
if /dev/console doesn't yet exist it should be created with proper permissions.
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index bb61bb6..3a93ef8 100755
--- a/init
+++ b/init
@@ -18,7 +18,7 @@ if [ -e /etc/udev/udev.conf ]; then
. /etc/udev/udev.conf
fi
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
-[ -e /dev/console ] || mknod /dev/console c 5 1
+[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
[ -e /dev/null ] || mknod /dev/null c 1 3
> /dev/.initramfs-tools
mkdir /dev/.initramfs