projects
/
hdw-linux
/
hdw-linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added zvbi package
[hdw-linux/hdw-linux.git]
/
packages
/
base
/
udev
/
init_udev.sh
diff --git
a/packages/base/udev/init_udev.sh
b/packages/base/udev/init_udev.sh
index
25fdf0f
..
138928a
100644
(file)
--- a/
packages/base/udev/init_udev.sh
+++ b/
packages/base/udev/init_udev.sh
@@
-29,8
+29,9
@@
run_udev() {
# all other devices
for i in ${sysfs_dir}/class/*; do
for j in $i/*; do
# all other devices
for i in ${sysfs_dir}/class/*; do
for j in $i/*; do
- # cruel hack, to not add/del /dev/null
- if [ "$j" != "${sysfs_dir}/class/mem/null" ] ; then
+ # cruel hack to not del /dev/null
+ if [ "$j" != "${sysfs_dir}/class/mem/null" -o \
+ "$ACTION" != "remove" ] ; then
if [ -f $j/dev ]; then
export DEVPATH=${j#${sysfs_dir}}
CLASS=`echo ${i#${sysfs_dir}} | \
if [ -f $j/dev ]; then
export DEVPATH=${j#${sysfs_dir}}
CLASS=`echo ${i#${sysfs_dir}} | \
@@
-68,7
+69,8
@@
in
exit 1
fi
rm -f $udev_root/.udev.tdb
exit 1
fi
rm -f $udev_root/.udev.tdb
- mknod -m 0666 ${udev_root}/null c 1 3
+ [ ! -c ${udev_root}/null ] && \
+ mknod -m 0660 ${udev_root}/null c 1 3
export ACTION=add
export UDEV_NO_SLEEP=1
run_udev
export ACTION=add
export UDEV_NO_SLEEP=1
run_udev
@@
-81,7
+83,6
@@
in
export ACTION=remove
run_udev
del_nodes
export ACTION=remove
run_udev
del_nodes
- rm ${udev_root}/null
echo " done"
;;
restart)
echo " done"
;;
restart)