On Saturday 21 of February 2004 23:52, Stefano Ceci wrote:
Perhaps this problem is more hard than I've thought. So I've been thinking to solve it changing the approach. After boot it's enough that I do a modprobe command. The problem is that I must be root to run it. I'd like a script that do it for me. I'd like that a normal user can boot the system and find the network correctly configured. In what file can I insert that command? The file should run after all the system is loaded....just before kdm. And what syntax I should use to do that command? I can create a job to insert in cron?
Stefano, add a new file to /etc/rc.d called local: ======================= #! /bin/bash # # /etc/init.d/local # ### BEGIN INIT INFO # Provides: local # Required-Start: $syslog # X-UnitedLinux-Should-Start: network hotplug pcmcia # Required-Stop: $syslog # X-UnitedLinux-Should-Stop: # Default-Start: 3 5 # Default-Stop: # Description: Start local scripts at boot ### END INIT INFO # your code here ========================= put your code in this script and set proper chmod (you can also copy pcmcia, as I did to prepare this example, and put some modifications according to my suggestions) then go to yast and runlevel editor in runlevel editor enable this local script and then ok. you can check if local script in /etc/rc.d/rc3.d and rc5.d got the highest number (this mean will be executed as the latest one when booting) if "not" modify this INIT INFO section "Should-Start" -- Marek Chlopek