PKGBUILDs/core/udev/root-link.sh

7 lines
221 B
Bash
Raw Normal View History

2010-02-07 05:38:13 +00:00
#! /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