-
Reboot computer without prompt for for a keypress
Hi,
I would like to reboot my knoppix-system without a prompt for for a keypress. But the CD should be ejected.
There is a cheatcode "noprompt", but then the CD won't be ejeceted.
I will use this for getting automatically images of servers over night. It would be great if someone can help me.
Thx & cheers
-
Senior Member
registered user
Well, this has been discussed here http://www.knoppix.net/forum/viewtopic.php?t=14175 where we discover that knoppix uses a modified sysvinit. If you want to follow up & edit the source, then you can get them at http://debian-knoppix.alioth.debian.org/sources/
-
Ok .. but ..
Ok, so this was covered a little in another thread --
BUT ..
If KNOPPIX has a "noprompt" and "noeject" runtime parameter, passed into the kernel at boot time - WHY oh WHY aren't they honored?
I have a situation where I NEED the box to be able to reboot unattended at a given time.
I've modified lilo to pass in "noprompt" -- which brings be to the point where the system says "Preparing for reboot" and then sits there forever.
I know KNOPPIX >CAN< reboot, since when I leave the prompt up and hit a key, the system reboots / powers down normally.
What I don't understand is why setting "noprompt" doesn't work, regardless of the modified SysVInit package.
Any help?!
P
-
Fixed...
Ok,
So without anyone responding, I took it upon myself to make the change.
I was using a LiveCD KNOPPIX style installation, but it was running from a Read/write CF card, so I downloaded the file: sysvinit-knoppix-2.84.tar.gz from http://debian-knoppix.alioth.debian.org/sources/ and had a go at removing the prompt and cdrom removal in a way that actually worked.
After reading the code, I couldn't figure out WHY setting "NOPROMPT" and "NOEJECT" passing into the kernel at boot time wasn't working as it should - the code read quite clearly that if those were there, move on and finish rebooting.
Clearly frustrated at the whole ordeal - I simply removed the offending block of code using the magic of "//"
I then recompiled init, did the special dance of 1,000 files to extract, insert, and recompress the KNOPPIX file, and put it back onto my CF Card..
Voila - No keypress!
If anyone ever has this problem again - (IE: Someone breaks sysvinit to require a freakin' keypress ..) - let me know and I'll forward you either a diff, patch, or zip of the whole mess fixed up.
P
Similar Threads
-
By gauclair in forum General Support
Replies: 0
Last Post: 01-23-2005, 05:36 AM
-
By Fiazle in forum General Support
Replies: 2
Last Post: 12-05-2004, 10:25 PM
-
By mimes in forum General Support
Replies: 1
Last Post: 11-29-2004, 04:57 AM
-
By DimGR in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 05-25-2004, 02:46 AM
-
By n3150nao in forum General Support
Replies: 2
Last Post: 03-18-2004, 02:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE
$199.87
Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux
$836.80
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
32GB Web HTML HTTP Server, Great tool for eBay seller & kids to host web site
$229.99
2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD
$30.00
Red Hat Enterprise Linux 5 Server - New and Sealed
$16.99
6x Powered By Linux Computer Sticker Decals Desktop Laptop Server Badge Decal
$2.99
IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8
$449.96
1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB
$419.00
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99