That trick doesn't work if he's botched an /etc/init.d script. Init runs its scripts serially, in numbered order. We've stuck with that system for, oh, about the last twenty years. What makes more sense, and what newer Linux distributions use,
is a system with dependencies, like 'make'. Init scripts then get run in parallel, marshalled only as needed to ensure that prerequisites get run first. In a system like that, as long as no other script relied on Daragon's script, it wouldn't stop the booting.
Only solution is to mount the SDcard on a Linux machine, and remove the script symlink from /etc/init.d/rc*.d. If no Linux machine is nearby, download an Ubuntu CD and boot off of it.
From: on behalf of Joel Morgan
Sent: Tuesday, October 02, 2012 1:33 PM
To:
Subject: [ts-7000] TS7260 - How to stop script that loads at bootup and gets stuck
On Oct 2, 2012 11:05 AM, "hec85aragon" <> wrote:
>
>
>
> Hello, I made a silly mistake with my TS-7260. I ran a script that loads an executable program from an SD card right after bootup. However, I failed to notice that it tries to mount the SD card before the SD driver is loaded (It is loaded manually with "modprobe
sdcard-sdhc.o"). The original sdcard.o driver was removed. Of course, the SD card never gets mounted on the device, thus the executable is not found.
>
> The problem is that the call to run the executable is within an infinite loop, so the script gets stuck eternally as it never finds the executable program. Since the script runs right after bootup I don't have access to the prompt anymore, and have no way
to modify the script or to stop it. Ctrl+C doesn't work.
>
> Is there another way to stop the script? or prevent it from executing?
>
> I'd really appreciate any help on this because I can't use my ts7260 at the moment.
> Thanks in advance.
>
Telnet into the device, then make the necessary changes.
-jr
__._,_.___
__,_._,___
|
|