-
Auto execute script on boot
I am remastering 5.1.1 to a USB drive so that it boots into text mode (via inittab), has a custom boot graphic and message, and has a password for ssh access; those changes work just fine.
However, trying to mount a second partition and start sshd on boot (/usr/sbin/sshstart) fails. I have tried several suggestions from this and other forums. A shell script (/start) that does this works manually. Adding a line to /etc/rc.local (which exists) to call this script (/start) doesn't make it execute on boot. Adding a cron job with @reboot and specifying the script (/start) doesn't work. Copying the script itself to KNOPPIX/linux.sh or to /etc/init.d/local.sh doesn't work.
Is this something you have to do in minitrt.gz? Other suggestions?
Rich
-
The answer seems to be to insert the knoppix.sh script into the minirt.gz. Then it executes just fine. I do not see that step anywhere in the various instructions, though.
Rich
-
Senior Member
registered user
As you're starting at init 2 (text mode)
add another start script for your commands at /etc/rc2.d/
Call is S99start_ssh
or similar and change its permissions to be executable.
Hopefully this should work.
-
Post boot script resolved
That finally did the trick. None of the other attempts were completely successful, apparently because not enough of the system initialization had occurred (linuxrc, knoppix.sh, rc.local. isolinux.cfg). I was surprised because rc.local didn't work, but adding a link rc2.d and rc3.d to a script in init.d worked just fine. I can mount a partition and reconfigure the nic as needed. Thanks for the help! Rich
Similar Threads
-
By slowhand in forum Customising & Remastering
Replies: 1
Last Post: 04-17-2005, 10:48 PM
-
By sci_fi in forum General Support
Replies: 3
Last Post: 11-20-2004, 03:53 AM
-
By bonecrusher in forum General Support
Replies: 1
Last Post: 03-05-2004, 11:17 AM
-
Replies: 0
Last Post: 10-22-2003, 07:25 PM
-
By Blue in forum Customising & Remastering
Replies: 2
Last Post: 06-26-2003, 12:02 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

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$125.00

pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN
$184.99

Unfi Security Gateway Pro
$170.00

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN
$258.00

SonicWall TZ370 Network Security Appliance
$100.00

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN
$219.99

Firewalla Gold Plus 2.5GbE Firewall Router – Excellent Condition
$435.00

Fortinet FortiGate 80E 12 Ports Firewall Appliance
$20.25

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED
$999.99

Netgate SG-1100 firewall
$140.00