summaryrefslogtreecommitdiffstats
path: root/main/udev/write_root_link_rule
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-06 09:30:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-06 09:30:14 +0000
commitbb40da560a54925d1df85afa3823db114ec923df (patch)
treed3eb5b7cf430cc2e9632b79ccf2d88d99c1a871a /main/udev/write_root_link_rule
parent24bfc81d4198293428ee670debc55efaea78e6d3 (diff)
downloadaports-bb40da560a54925d1df85afa3823db114ec923df.tar.bz2
aports-bb40da560a54925d1df85afa3823db114ec923df.tar.xz
testing/udev: moved from main
Diffstat (limited to 'main/udev/write_root_link_rule')
-rwxr-xr-xmain/udev/write_root_link_rule29
1 files changed, 0 insertions, 29 deletions
diff --git a/main/udev/write_root_link_rule b/main/udev/write_root_link_rule
deleted file mode 100755
index 8eaea1176..000000000
--- a/main/udev/write_root_link_rule
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-#
-# This script should run before doing udevtrigger at boot.
-# It will create a rule matching the device directory / is on, and
-# creating /dev/root symlink pointing on its device node.
-#
-# This is especially useful for hal looking at /proc/mounts containing
-# a line listing /dev/root as device:
-# /dev/root / reiserfs rw 0 0
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation version 2 of the License.
-#
-# (c) 2007-2008 Matthias Schwarzott <zzam@gentoo.org>
-
-eval $(udevadm info --export --export-prefix="ROOT_" --device-id-of-file=/)
-
-[ $? = 0 ] || exit 0
-[ "$ROOT_MAJOR" = 0 ] && exit 0
-
-DIR=/dev/.udev/rules.d
-[ -d "$DIR" ] || mkdir -p "$DIR"
-RULES=$DIR/10-root-link.rules
-
-echo "# Created by /lib/udev/write_root_link_rule" > "${RULES}"
-echo "# This rule should create /dev/root as link to real root device." >> "${RULES}"
-echo "SUBSYSTEM==\"block\", ENV{MAJOR}==\"$ROOT_MAJOR\", ENV{MINOR}==\"$ROOT_MINOR\", SYMLINK+=\"root\"" >> "${RULES}"
-