Casper.Dik at Sun.COM wrote: >>Casper.Dik at Sun.COM wrote: >> >>>>Yes. >>>>And of course, this has updated /etc/path_to_inst. >>>>doh! >>>> >>>>If I have the USB device plugged in across a reboot, >>>>will path_to_inst still get modified when the system >>>>boots and reprobes USB? >>>> >>>If a USB device was plugged in before in the same slot, then >>>/etc/path_to_inst shouldn't change. >>> >>Shouldn't change content, but might its mtime change ? >> > >Well, you can always check; should it change when it contents >doesn't change? >
Maybe we should be storing an MD5 or similar checksum of the file contents and comparing that, rather than mtime, to know if the file contents have changed relative to the boot archive? The mtime could be used as a hint about whether or not to calculate the checksum, rather than be the final arbiter. Keep it in the SMF profile as a property? Darren