updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / udev-old-kernel / root-link.sh
blob05273fe7c8cf1f2a37390f5550c2ee31ab7d2fbe
1 #! /bin/sh
2 # Creates root symlink in /dev
3 # for Arch Linux by Roman Kyrylych <Roman.Kyrylych@gmail.com>
5 if ! [ -L /dev/root ]; then
6 ln -s $(cat /proc/cmdline | sed "s: :\n:g" | grep root= | sed "s:root=::") /dev/root
7 fi