How to implement this script without "devfsd"?
How to implement this script without "devfsd"?
# loop rescanning the scsi bus + rerunning devfsd retries=5 i=1 until [ -e $REAL_ROOT ] do if [ $i -gt $retries ] then echo "Unable to mount real root ($REAL_ROOT) - Giving up!" /bin/ash exit fi echo "Real root ($REAL_ROOT) not found, retrying ($i)" sleep 1 echo "scsi add-single-device 0 0 0" > /proc/scsi/scsi echo "scsi add-single-device 1 0 0" > /proc/scsi/scsi echo "scsi add-single-device 2 0 0" > /proc/scsi/scsi /bin/devfsd /dev -np i=$((i+1)) done |
Remove the line containing "devfsd"..
If you're trying to implement something, it's in your interests to tell us what you're trying to do.. |
Thank you for the comment. I am new to Linux and new to the forum.
Does that work? I do not know what this script does. That is why I posted it to LQ. Someone gave me this solution from LQ. I am asking for a different way to implement that command. Someone must understand what that command does in the script and could tell me another way to do it. Could someone tell me what it does and another way to do it? The command was there for some function that I do not understand. # loop rescanning the scsi bus + rerunning devfsd Quote:
|
Quote:
Anyway, devfsd is a daemon for managing the device entries in the Linux Device Filesystem. It is an obsolete feature now substituted by udev in the recent kernels. |
The context for the script is in the original post. There should be enough in the script to understand what it does and to find another way to do it, if you know scripting. I do not know scripting, so that is why I posted this question. After looking on the web, it seems to me that it does not matter what the variable REAL_ROOT is, as long as it is defined. One of the posts on LQ said that you can get its value with the command "echo $REAL_ROOT".
It is off topic to explain where this script came from. If you want to know about that, look at all my other posts in LQ! Quote:
|
Quote:
|
From the other posts, this is what I am trying to do. Does this help you to tell me another way to do the script?
I was told to start new posts if I have new questions! I did what I was told by LQ members. |
All times are GMT -5. The time now is 04:04 PM. |