put the symlinks into the correct locations.
git-svn-id: http://emdebian.org/svn/current@7264 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
parent
d21a861def
commit
3be748d310
1 changed files with 10 additions and 2 deletions
|
@ -98,11 +98,11 @@ foreach $line (@list)
|
||||||
next if (not defined $cmd[1]);
|
next if (not defined $cmd[1]);
|
||||||
next if (scalar @cmd != 10);
|
next if (scalar @cmd != 10);
|
||||||
if ($cmd[1] eq "s") {
|
if ($cmd[1] eq "s") {
|
||||||
push @seq, "ln -s $cmd[0] $cmd[2]";
|
push @seq, "ln -s $cmd[0] .$cmd[2]";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ($cmd[1] eq "h") {
|
if ($cmd[1] eq "h") {
|
||||||
push @seq, "ln $cmd[0] $cmd[2]";
|
push @seq, "ln $cmd[0] .$cmd[2]";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ($cmd[1] eq "d"){
|
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
|
b Block special device file
|
||||||
p Fifo (named pipe)
|
p Fifo (named pipe)
|
||||||
|
|
||||||
|
symlinks and hardlinks are extensions to the device table, just for
|
||||||
|
F<device-table.pl>, 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
|
See http://wiki.debian.org/DeviceTableScripting
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
Loading…
Reference in a new issue