LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2016, 09:00 AM   #1
Dr.Lightning
LQ Newbie
 
Registered: Mar 2016
Posts: 10

Rep: Reputation: Disabled
Insert driver at boot, what am I missing?


I have long been using a script "insert" in a folder "/home/user/app" to insert my custom driver. That script includes a couple sudo commands for inserting the driver and for changing permissions on the subsequent /dev devices created.

Now I want this to happen automatically upon boot.

So I copied an example of where I done a very similar thing before on a different linux OS. I put a script "install_setup_insert" in "/etc/init.d" that simply changes folders to "/home/user/app" and then runs "./insert". I manually ran "sudo ./install_setup_insert" from "/etc/init.d" and it worked. I know because /dev now had my custom devices.

Then I did "cp -s /etc/init.d/install_setup_insert /etc/rc5.d/S99install_setup_insert.sh" to put a link in /etc/rc5.d. I manually ran "sudo ./S99install_setup_insert.sh" and it worked. I know because /dev now had my custom devices.

But when I rebooted and looked in /dev for my custom devices, they were NOT there.

What am I doing wrong?

I don't know how to look at a boot log for info, either. Perhaps I need to do that, if you would advise me.

Thanks very much.
 
Old 03-24-2016, 09:10 AM   #2
Dr.Lightning
LQ Newbie
 
Registered: Mar 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
...oh, I forgot to add. This Fedora 20 OS has a README in /etc/init.d about how it uses native systemd services files. However, it also says that traditional init scripts continue to function.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert ethernet driver but found mac not connect Angela Wu Linux - Kernel 2 06-18-2013 03:01 PM
Cannot boot due to missing graphics driver Rebold Linux - Hardware 3 09-25-2012 11:13 PM
[SOLVED] linux gadget hid driver insert error ma1 Linux - Newbie 3 09-03-2012 10:17 PM
cannot able to insert the driver module rajagopalviswanath Linux - Newbie 2 06-19-2010 12:22 PM
how to Insert driver to new kernel ? Sayoji Linux - Kernel 2 11-20-2006 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration