- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
SeXML?
Admin
uPNP is a piece of crap.
Admin
this needs proper comment to determine optimal humour
idiots cant figure out how to produce this in a reasonable amoutn of time
for now just mention amoutn
Admin
And he's always wondering why it takes 10 seconds until the unit is operational.
Perhaps he could add soemthing like "boot_time=0" and it would be on immediately.
Admin
wonder if there's a "bandwith" option as well?
Admin
Admin
trail an error?
Admin
#do not honor captcha captcha: junkuo
Admin
Not too surprised to see this kind of thing. I ran into this gem early in my career...
bool kenIsaJackass = true;
Don't know who Ken was or why he was a jackass... but it seems that he was.
Admin
FOXME BABY
FOXME HARD!
Admin
I dunno what's going on here with the routing, but TRWTF is that even though PATH clearly lists "/bin" they still call "rm" as "/bin/rm" even though every *nix system ever knows what you mean if you just say "rm".
Admin
Same goes for /sbin/whatever.
Admin
Through trail an error, I finally managed to post a comment.
Admin
Admin
TRWTF is the fact that I saw a .nl domain name at the top of the file, surfed there, got redirected to xs4all.nl, and realized, i have that very same router :(
Admin
True, but after you explicitly set the PATH variable that should not be an issue. You set EITHER the PATH variable OR you use full paths.
Admin
XS4All?
90% of the time, when you hear the name "XS4All", it's in the sentence: "Welcome to the XS4All support line. All our call agents are currently engaged. Please hold..."
Admin
#WHO WROTE THIS COMMENT
Admin
And TRWTF is... that it doesn't route IPv6, right? And that it drops ICMP Destination Unreachable messages, I guess.
But I don't see the answer to the original question: why was the Internet access so slow?
Admin
miquels and cistron.nl don't deserve this bad credit.
Miquel write the original rcS script on debian, and whoever made this router completely gutted the script (since it doesn't even do what the header says it does) and replaced it with his own.
They at least could have also ripped out the copyright, since everything from the "FOXME" and on isn't in the original script.
Admin
CAPTCHA: vulputate. I'm not sure I want to know what that means...
Admin
The original version: http://pyramid.metrix.net/trac/browser/Pyramid/dist/etc/init.d/rcS?rev=91
Admin
I most certainly did not write this script.
Looked like they took a sample script that comes with sysvinit, deleted everything but the version number and my name, and then put their own code in.
Nice ... :/
Mike.
Admin
anyway... if you want zeroconf, use dns-sd or slp. if you want autopiercing of firewalls, JUST DON'T. configure your firewall correctly instead.
Admin
When dealing with basic system commands as root, typing, say, "/bin/rm" rather than "rm" is a good habit to get into -- it reduces the chance that somebody compromises your box by getting you to run a Trojan-horse rm from a different location in your PATH than you think. root should also have a minimal PATH and it should be arranged sensibly to further reduce the risk.
If you really want paranoia, you can disable root entirely and set up sudo on a single otherwise-unprivileged account, so that you can force root-level rm (or whatever) to run from /bin/rm or not at all regardless of what the value of PATH is.
Admin
Welcome to the world of embedded devices with Linux!
It is much easier to hack startup scripts than recompile busybox.
Admin
From Mark - All spelling and grammer checking is crowdsourced - Thanks! Fixed.
Admin
Trail an error = starting with one error, only to dig deeper and deeper until the root cause of the error is discovered. Not to be confused with "trial and error."
Admin
captcha: these just aren't fun anymore, what happened to whiskey, tango, or foxtrot?
Admin
Sorry, but what's the big deal?
This is just the router startup script, and is pretty much what you'd expect for an embedded device, particularly one where the main stuff is in flash and you need to store temporary data in a ram disk.
Nor is there anything here that would reduce or otherwise throttle the user's bandwidth.
Admin
sbin is sometimes only in the path for root and admin users, although the progs are usually usable by everyone.
Doesn't stop the entire script being a mess though :)
Admin
CAPTCHA: facilisis - what you can catch when facilitating TDWTF spell checking
Admin
Admin
Crap - It's Monday for sure. That one's me trying to keep one eye on on a long-running Unix job that should've been done ages ago and another on the comments. Ok, now THAT typo's fixed.
Admin
The thing you're describing, where one failure leads you to another and from there to another until you're reeling and staggering, blundering from one error to another like a human pinball, only concussed, with each one hitting you with the force of a stepped-on lawnrake right in the face: that's called "trail OF error".
Admin
Perhaps this has coloured my perceptions, but I am amused by the notion of a background job that requires constant operator attention to wait for it to complete. And yet not surprised.
Anyway, mustn't keep you, it's nearing the hour. You'll probably be busy enough going and making sure all your cron jobs run.
Admin
Admin
I think at this point the story should censor the email address to protect the innocent.
Admin
Someone probably told the coders at that company "never remove a copyright notice, we'll get into all kinds of trouble with the lawyers."
Admin
This deserves a blue, I think.
Admin
(It's the comment that amused me most because it's the one that, if it had been heeded by even the most junior of interns, would have made this a non-WTF. Therefore it represents the very epitome of Fail.)
Admin
Admin
Is this where I can bitch about linux distros creating their own library-fueled rc abomination? Some of them add some nice features, but damn it's a kick in the teeth when you periodically pop-in to make a would-be quick change.
Admin
Admin
Admin
Actually, Fedora 10 lists having /sbin added to user's acount as a major new feature.
Admin
That was meant merely as an aside, not a troll or flame or what-have-you
Admin
Not all the original script.
The tarp line, along with its comment survived as well.
This script is the version included in Debian potato and woody (maybe also in older, but not the newer Sarge:
http://archive.debian.org/sysvinit (under debian/etc/init.d/rcS )
Note that the version of busybox at the time had a rather lousy shell interpreter. It didn't support functions. Maybe they also disabled other standard shell functions to save space.
This script is behaves much differently than the original rcS script, but that's OK, as it runs a limited and well-controlled environment. And no services are ever supposed to be properly shut down. After all, the user has but one way to fix an error: reset. No need for a full-fledged init.d process. That will also take an extra second to run.
The extra sleep-s are probably the simple way to wait that some kernel stuff is initialized (they are after insmod-s that load kernel modules). Those boxes often use lousy manufacturer-proviced kernel modules for drivers.
As for "who wrote this junk", it refers to that cm_pc that doesn't daemonize properly and required ugly and half-working workarounds by the author. cm_* programs seem to be some "configuration manager" (the one responsible for that so un-unixish config.xml)
Admin
Unless of course, there's a trojan-horse rm that simply replaced /bin/rm.
Admin
/Knows way too much trivia re: Simpsons