updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / udev-ubuntu / 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