From 3be748d3102d5ae5677f538e38b82f5ba485dc24 Mon Sep 17 00:00:00 2001 From: codehelp Date: Tue, 1 Jun 2010 08:14:12 +0000 Subject: [PATCH] put the symlinks into the correct locations. git-svn-id: http://emdebian.org/svn/current@7264 563faec7-e20c-0410-992a-a66f704d0ccd --- device-table.pl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/device-table.pl b/device-table.pl index cb019a8..f6cc649 100755 --- a/device-table.pl +++ b/device-table.pl @@ -98,11 +98,11 @@ foreach $line (@list) next if (not defined $cmd[1]); next if (scalar @cmd != 10); if ($cmd[1] eq "s") { - push @seq, "ln -s $cmd[0] $cmd[2]"; + push @seq, "ln -s $cmd[0] .$cmd[2]"; next; } if ($cmd[1] eq "h") { - push @seq, "ln $cmd[0] $cmd[2]"; + push @seq, "ln $cmd[0] .$cmd[2]"; next; } if ($cmd[1] eq "d"){ @@ -206,6 +206,14 @@ where name is the file name, type can be one of: b Block special device file p Fifo (named pipe) +symlinks and hardlinks are extensions to the device table, just for +F, other device table parsers might not handle these +types. The first field of the symlink command is the existing target of +the symlink, the third field is the full path of the symlink itself. +e.g. + + /proc/self/fd/0 s /dev/stdin - - - - - - - + See http://wiki.debian.org/DeviceTableScripting =cut