summaryrefslogtreecommitdiffstats
path: root/abs/core/udev/root-link.sh
blob: 05273fe7c8cf1f2a37390f5550c2ee31ab7d2fbe (plain)
1
2
3
4
5
6
7
#! /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