Error running http://wd.mirmana.com/prep_whitelight
Forum » Forum / Optware » Error running http://wd.mirmana.com/prep_whitelight
Started by: LolloNotaroLolloNotaro
On: 1249397254|%e %b %Y, %H:%M %Z|agohover
Number of posts: 9
rss icon RSS: New posts
Summary:
: not found_whitelight.sh: 8: -sh: ./prep_whitelight.sh: 359: Syntax error: end of file unexpected (expecting "then")
Error running http://wd.mirmana.com/prep_whitelight
LolloNotaroLolloNotaro 1249397254|%e %b %Y, %H:%M %Z|agohover

Hello,

I am trying to run prep_whitelight.sh. But I got this error:

~ # . ./prep_whitelight.sh

-sh
Written on: Mon Aug 3 22:45:20 CEST 2009
If you're giving feedback, please post the version as well

-sh: ./prep_whitelight.sh: 359: Syntax error: end of file unexpected (expecting "then")

Somebody can help me with this issue?

unfold Error running http://wd.mirmana.com/prep_whitelight by LolloNotaroLolloNotaro, 1249397254|%e %b %Y, %H:%M %Z|agohover
Re: Error running http://wd.mirmana.com/prep_whitelight
fraterfrater 1249412834|%e %b %Y, %H:%M %Z|agohover

I was able to reproduce this error. Either my webserver or my reverse proxy was at fault. It didn't give you the complete file. During troubleshooting I made a little mistake, so I still don't know which of the 2 was at fault.
My reverse proxy has no cache so I'm suspecting the lighttpd-server (of my bluering).

Please try again and let me know if you were able to download the whole file….

unfold Re: Error running http://wd.mirmana.com/prep_whitelight by fraterfrater, 1249412834|%e %b %Y, %H:%M %Z|agohover
Re: Error running http://wd.mirmana.com/prep_whitelight
LolloNotaroLolloNotaro 1249415262|%e %b %Y, %H:%M %Z|agohover

Hello,

I have downloaded right now your file. Then I have moved on my book, change group and user to root.

After run it I got always the same error. I don' think this is because the file is truncated, because it looks that it ends fine.

These are the last lines included of your file from 350 t0 358

if [ ! -e /opt/etc/logrotate.conf.org ] ; then
  cp -p /opt/etc/logrotate.conf /opt/etc/logrotate.conf.org
  sed -i -e "s/\/bin\/killall syslogd/#\/bin\/killall syslogd/" /opt/etc/logrotate.conf
  sed -i -e "s/\/bin\/killall klogd/#\/bin\/killall klogd/" /opt/etc/logrotate.conf
fi

/opt/etc/init.d/S10cron

echo -e "Script finished!!\nYou can now fully use optware if you login again...\nI advice a reboot!\n"

And thinsert the code here
is is always the same error that I got:

~ # 
~ # . ./prep_whitelight.sh 
: not found_whitelight.sh: 8: 
-sh
Written on: Mon Aug  3 22:45:20 CEST 2009
If you're giving feedback, please post the version as well

: not found_whitelight.sh: 11: 
-sh: ./prep_whitelight.sh: 359: Syntax error: end of file unexpected (expecting "then")
~ #

If you want I can upload this file on your server in order that u can have a look to it.

Re: Error running http://wd.mirmana.com/prep_whitelight
fraterfrater 1249416449|%e %b %Y, %H:%M %Z|agohover

why are you starting the program that way?
you have to type:

sh prep_whitelight
unfold Re: Error running http://wd.mirmana.com/prep_whitelight by fraterfrater, 1249416449|%e %b %Y, %H:%M %Z|agohover
Re: Error running http://wd.mirmana.com/prep_whitelight
fraterfrater 1249416772|%e %b %Y, %H:%M %Z|agohover

You are not using the correct syntax.
I didn't notice it before…..

This is what I advice to do… please just copy/paste and don't change it into something else if you don't know what it means…….

wget -O prep_whitelight http://wd.mirmana.com/prep_whitelight
sh prep_whitelight

NOT

. ./prep_whitelight.sh

Where does this come from (also the ".sh" This is NOT windows. The file-extension is NOT used to determine the type of file…..)

unfold Re: Error running http://wd.mirmana.com/prep_whitelight by fraterfrater, 1249416772|%e %b %Y, %H:%M %Z|agohover
Re: Error running http://wd.mirmana.com/prep_whitelight
LolloNotaroLolloNotaro 1249418531|%e %b %Y, %H:%M %Z|agohover

THANKS A LOT..

Your work is great, and I love the result.. I really like it, now I am going to post a new forum with another question about NFS.. hope u can still help me..

Thanks again for your script. It is great and work without any problem!

Re: Error running http://wd.mirmana.com/prep_whitelight
promitheuspromitheus 1257515180|%e %b %Y, %H:%M %Z|agohover

Hi to all

excellent work frater!!!
Is there a way to uninstall prep_whitelight

Thnx

Re: Error running http://wd.mirmana.com/prep_whitelight
fraterfrater 1257533150|%e %b %Y, %H:%M %Z|agohover

Who wants to get rid of excellent work? ;-)

You can trick your Worldbook to think it has an old version

echo -n "01.00.14" >/etc/version

After that you can do an upgrade and all optware will be uninstalled…

ALL optware!

unfold Re: Error running http://wd.mirmana.com/prep_whitelight by fraterfrater, 1257533150|%e %b %Y, %H:%M %Z|agohover
Re: Error running http://wd.mirmana.com/prep_whitelight
promitheuspromitheus 1257565771|%e %b %Y, %H:%M %Z|agohover

Of course noone wants to get rid of excellent work !!!!
But just in case…

Thnx again

New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License