SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Never touched this file before, but here's the first few lines:
#!/bin/sh
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 2.23 Wed Feb 26 19:20:58 PST 2003
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Heavily modified by Patrick Volkerding <volkerdi@slackware.com>
I'm not entirely sure I can help with this problem, but generally comments and blank lines aren't counted. Thus, when it refers to line 7, it probably is referring to the seventh uncommented line. I would suggest just ignoring all the leading comments, and concentrate on the first 10 or so "active", uncoommented lines of code. That's where I suspect you might find the problem. -- J.W.
I'm a bit confused myself. It should actually read the commented lines as well. What happens if you remove line 7 and reboot, does the same error occur?
I will defer to trickykid's superior knowledge. If in fact all lines are counted, then maybe the presence of that second # sign in what I would call the eighth line (the one starting with Version: @(#)/etc/rc.d/rc.M ...) might be interpreted as an end-comment mark, and that anything following it should not be treated as a comment. In any event, I agree that it would be useful to eliminate those suspect lines, and see what happens. -- J.W.
I just remembered that the only thing I had changed was /etc/rc.d/rc.local to start samba daemons automatically. I removed what I added to /etc/rc.d/rc.local and no more rc.M error. Strange.
It might have been a generic type error and said it was line 7 in rc.M instead of rc.local since it does call upon the rc.local script in the rc.M script..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.