LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2004, 07:39 PM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
Unexpected end of file???


Hi whenever I shut down, I get maybe 50 or more messages saying something along the lines of

Code:
/etc/rc6.d/k99local/ line11: unexpected EOF

etc/rc6.d/k99local/ line 15: unexpected EOF
It doesn't appear to affect functionality - but it is very annoying. What is it that this is saying and why is it complaining about a line that doesn't even exist?

I've printed the output of k99local below. (It really just points to /etc/init.d/local - which contains some startup commands).


Code:
#!/bin/sh
/sbin/splash -s -u 0 /etc/bootsplash/themes/KnoppMyth/config/vt0-800x600.cfg
/sbin/splash -s -u 1 /etc/bootsplash/themes/KnoppMyth/config/vt1-800x600.cfg
/sbin/splash -s -u 2 /etc/bootsplash/themes/KnoppMyth/config/vt2-800x600.cfg
/sbin/splash -s -u 3 /etc/bootsplash/themes/KnoppMyth/config/vt3-800x600.cfg
/sbin/splash -s -u 4 /etc/bootsplash/themes/KnoppMyth/config/vt4-800x600.cfg
/sbin/splash -s -u 5 /etc/bootsplash/themes/KnoppMyth/config/vt5-800x600.cfg
echo 1024 > /proc/sys/dev/rtc/max-user-freq
--device=/dev/input/event0"
echo "disable=2" >| /proc/mtrr
echo "base=0xe0000000 size=0x8000000 type=write-combining" >| /proc/mtrr
Any clue about what is going on and how to fix it?

GJ
 
Old 11-28-2004, 09:41 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i will take a guess
first
i think you shouldn't be calling this script at shutdown at all
it essentially initializes stuff for startup (late into startup) as you said
reading in some splash configs and then tweeking some kernel settings
the script is not divided up into K(kill) and S(start) parts like most startup script are
you could set it up that way but no reason -- there doesn't seem to be a reason to touch these issues at shutdown
so i would remove K(kill) runlevel references (links) to /etc/init.d/local

that of course wil fix the shutdown problem but you still have a syntax problem i think
(i'm not so good with bash scripting)
this line:
--device=/dev/input/event0"

you have a closing (") there that has no coresponding opening (")

most lkely EOF errors are bash searching for the lost (")

i also can't quite understand what that line is trying to do -- looks like a long argument to some script or program that has gotten lost from its home and is now causing troubles and possibly messing up those writes to /proc/mtrr
 
Old 12-01-2004, 04:10 AM   #3
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Mmm I tried commenting those splash lines out but I still get those errors during boot (and shutdown too).

Actually I'm getting a few unknown commands during startup/shutdown such as

"sbin/unconfigured.sh No such file or directory"

"grep /proc/cmdline No such file or directory"

and also

"warning process "update" used the obsolete bdflush sytem call."

I'm not sure if they are all related, but I am on a bit of a quest to eliminate as many bugs (minor or otherwise) as I can.

I don't think I've ever had a linux system that stated up and shutdown 100% cleanly without complaints, it would be nice for once to see it.

Is there any chance anyone here knows which script in debian is issuing these commands? It's not the local script, as this is I assume soomething that I am expected to add my own commands to - so it must be some other general start up script that controls the behavour of the whole system and that even overrides all the settings in /etc/init.d/local.

I am also still getting the unexpected EOF issues - and the referrence to the non existant 'line 15" in /etc/init.d/local and also the system is continuing to attempt to load several modules at boot time, despite having compiled them (as they weren't needed) out of my kernel and having run update-modules. So why the sytem isn't listening to me is something of a concern.

I am simply somewhat nervous that some of these errors might be telling me that something much more fundamental is wrong - which is why I would like to pin down what it is that is causing them.

Any input anyone can offer will be extremely welcome.

GJ

Last edited by raid517; 12-01-2004 at 04:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No new line at end of file? What does this mean? BajaNick Programming 12 05-19-2014 08:39 PM
file with ~ at the end ddaas Red Hat 5 07-13-2005 01:47 PM
got a syntax error which shows unexpected end of line when tried to run a shell scrip racer_mec Linux - Newbie 1 01-10-2005 01:43 AM
ACPI: Unexpected end of file h1tman Slackware 6 09-08-2003 04:40 PM
Script, Reading a file, When end of file? elibm Programming 2 07-16-2001 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration