On 4/20/10 3:07 PM, Jerry Gilliam wrote:

I need help in figuring out, how to remove stale symbolic links from
/dev?.

We removed kernel module '/kernel/drv/sctp{6}' as it was no longer
required. As
part of the removal we made necessary changes to the manifest files
by deleting
all the entries referring to the module and the modules '.conf' files.

After image updating to the above changes, all the kernel module and
associated
configuration files are gone. However the following symbolic link still
continues to exist.

# ls -alth /kernel/drv/sctp*
ls: cannot access /kernel/drv/sctp*: No such file or directory

# ls -al /dev/sctp*
lrwxrwxrwx /dev/sctp -> ../devices/pseudo/s...@0:sctp
lrwxrwxrwx /dev/sctp6 -> ../devices/pseudo/sc...@0:sctp6

You need to remove the sctp patterns from the misc link
generator also. These links would then no longer be
created and devfsadm -C should clean up earlier installs.

grep sctp /ws/onnv-gate/usr/src/cmd/devfsadm/*.c
/ws/onnv-gate/usr/src/cmd/devfsadm/misc_link.c:
"(^ip$)|(^tcp$)|(^udp$)|(^icmp$)|(^sctp$)|"
/ws/onnv-gate/usr/src/cmd/devfsadm/misc_link.c:
"(^ip6$)|(^tcp6$)|(^udp6$)|(^icmp6$)|(^sctp6$)|"

Thanks a ton, to you both!

cheers
~Girish
_______________________________________________
on-ips-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/on-ips-dev

Reply via email to