-
Junior Member
registered user
I copied script.sh inside /etc/
#!/bin/sh
clear
read -p "Insert your Windows installation disk and press a key to continue" disco
sudo mount -t auto /dev/cdrom /mnt/cdrom
dosemu
I call it inside the /etc/rc.local file :
rc.local
....
/etc/script.sh
I made it executable,with chmod +x script.sh
and at the end I re-booted Knoppix with runlevel 2,but when it has finished to be loaded in memory,the script.sh is not started.
-
Senior Member
registered user
Since you made it executable it is better to remove the .sh extension and place your script in /usr/sbin, then make a line in /etc/rc.local
Make sure again it is chmod 755
rc.local is the last script executed at every runlevel 2,3,4 and 5
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

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD
$27.99

AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad
$355.99

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i5-4590 3.3 GHz 5 GT/s LGA 1150 Desktop Processor CPU SR1QJ
$10.99

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Xeon E3-1230 v3 SR153 3.3GHz Quad Core LGA 1150 CPU Processor
$14.49

INTEL CORE I9-10980XE PROCESSOR | 3.00GHZ | SRGSG
$299.99

PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU
$15.99