core/udev/root-link.sh
Jan Mette a20ff5c68a
2010-03-13 15:25:19 +00:00

7 lines
221 B
Bash
Executable File

#! /bin/sh
# Creates root symlink in /dev
# for Arch Linux by Roman Kyrylych <Roman.Kyrylych@gmail.com>
if ! [ -L /dev/root ]; then
ln -s $(cat /proc/cmdline | sed "s: :\n:g" | grep root= | sed "s:root=::") /dev/root
fi