Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
openmamba
postplug
Commits
61d1ea71
Commit
61d1ea71
authored
13 years ago
by
Silvan Calarco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filesystems: remove obsolete devfs code
parent
93699b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
postplug.d/10filesystems
postplug.d/10filesystems
+0
-39
No files found.
postplug.d/10filesystems
View file @
61d1ea71
...
...
@@ -24,29 +24,6 @@ fstab="/etc/fstab"
# has been removed
devs2scan
=
'/dev/disk/by-uuid/*'
# function devfs2dev()
# convert devfs names to stardard names
# args:
# $1: the devfs name that need to be converted
function
devfs2dev
()
{
local
devlong
=
"
$1
"
# exit if devfs is not running
[
-e
/dev/.devfsd
]
||
{
echo
-n
"
$devlong
"
;
return
;
}
[[
"
$devlong
"
]]
||
{
echo
-n
""
;
return
;
}
# we want to skip symlinks like '/dev/ide/hd/c0b0t0u0p1'
LANG
=
C find /dev
-maxdepth
1
-type
l 2>/dev/null |
\
while
read
dev
;
do
[[
"
$(
readlink
-f
$dev
2>/dev/null
)
"
=
"
$devlong
"
]]
&&
{
echo
-n
"
${
dev
:-
$devlong
}
"
;
return
0
;
}
done
[
$?
-eq
0
]
&&
return
echo
-n
"
$devlong
"
}
# function get_new_mp_name()
# Find for a usable mount point in the form $rootmp/$1[0-9]*
# or the current mount point if the device `$2' is already mounted
...
...
@@ -102,22 +79,6 @@ tmpfstab=`mktemp -q -t $me.XXXXXXXX` ||
trap
"rm -f
$tmpfstab
"
0 1 2 5 15
# convert device paths from devfs to udev
if
[
-e
/dev/.devfsd
]
;
then
while
read
line
;
do
case
"
$line
"
in
/dev/
*
)
set
--
$line
fs
=
"
$(
devfs2dev
"
$1
"
)
"
echo
"
$fs
${
line
#*
}
"
>>
$tmpfstab
;;
*
)
echo
"
$line
"
>>
$tmpfstab
;;
esac
done
<
$fstab
mv
$tmpfstab
$fstab
&&
chmod
644
$fstab
exit
0
fi
# note: remove some directories not FHS 2.3 compliant
#find /mnt/ -type d \( \
# -name floppy -o -name floppy[0-9]\* -o \
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment