Results 1 to 2 of 2

Thread: bootup script

  1. #1
    Junior Member registered user
    Join Date
    Mar 2005
    Posts
    10

    bootup script

    alright i tried these links but i still can't solve my problem.

    http://www.knoppix.net/forum/viewtop...script&start=0
    http://www.knoppix.net/forum/viewtop...iswrapper+boot
    http://www.knoppix.net/forum/viewtop...wrapper+script

    I would like to reinstall my driver using ndiswrapper every time i boot so i don't have to do it manually but i can't get it to work. I added this code(with the correct directories) to /etc/init.d/bootmisc.sh.

    Code:
    if [ -r /path/to/file.sh ]; then
        . /path/to/file.sh
    fi
    then i made a .sh file to .../.kde/Autostart/ and made this

    Code:
    #!/bin/sh
    su mount /mnt/hda1
    su ndiswrapper -e net8180
    su ndiswrapper -i /file/directory/net8180.inf
    su modprobe ndiswrapper
    su iwconfig wlan0 mode Managed
    su iwconfig wlan0 essid default
    su iwconfig wlan0 commit
    su ifconfig wlan0 up
    su pump -i wlan0
    but my internet doesn't want to work on boot and i have to do it manually. I tried putting "su root" on the top but it just didn't load knoppix's gui and i had to exit out of the root and the internet still did not work. I have also tried tweaking it around a bit but couldn't figure anything out.

    i have knoppix 3.8 installed on my hard drive.

  2. #2
    Junior Member registered user
    Join Date
    Mar 2005
    Posts
    10
    alright i think i got this working...sorta

    when i put the code under /etc/profile it seems to run it but i can't get it working because of these root problems.

    Code:
    #!/bin/sh
    su ndiswrapper -e net8180
    su ndiswrapper -i /file/directory/net8180.inf
    su modprobe ndiswrapper
    su ndiswrapper -m
    su iwconfig wlan0 essid default
    su ifconfig wlan0 up
    su pump -i wlan0
    when i try that, the internet doesn't work instead when i open the terminal it shows those commands but says that i used su improperly. when i try with sudo, i need to open the terminal and then it says to input a password and i do and then the internet works. When i try su root on the top and then exit on the bottom it gets really wierd. when i open the terminal it asks for the password and when i type it in it just goes to the next line but there's not [email protected] and i can't do anything. How do i properly use the root command so it would load up?

    ==Update==

    Nevermind i got it to work. I had to configure my sudoers file in /etc/ so it would allow me to do the sudo command

Similar Threads

  1. Bootup problem or something...
    By rapturestar in forum Hardware & Booting
    Replies: 2
    Last Post: 07-03-2006, 03:05 AM
  2. cannot run a script on bootup
    By digDug in forum General Support
    Replies: 5
    Last Post: 01-14-2005, 11:50 AM
  3. Knoppix Bootup
    By jjmerrill in forum General Support
    Replies: 1
    Last Post: 12-21-2004, 01:13 AM
  4. Bootup Knoppix
    By Jaki in forum General Support
    Replies: 2
    Last Post: 03-12-2004, 11:27 PM
  5. lvm in bootup/shutdown script
    By sireasoning in forum Ideas
    Replies: 0
    Last Post: 01-21-2003, 08:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HPE ProLiant MicroServer Gen10 Plus with Power Adapter picture

HPE ProLiant MicroServer Gen10 Plus with Power Adapter

$600.00



HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM picture

HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM

$289.99



HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD picture

HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD

$249.99



New Supermicro SuperServer E50-9AP-Wifi Mini PC Server picture

New Supermicro SuperServer E50-9AP-Wifi Mini PC Server

$175.00



Supermicro SYS-6048R-E1CR36N 36B LFF 4U Server  -V3- Choose CPUs/RAM - Wholesale picture

Supermicro SYS-6048R-E1CR36N 36B LFF 4U Server -V3- Choose CPUs/RAM - Wholesale

$4574.00



Supermicro 510-2 U1 Rack Mount 3.30GHz 4-Core 4GB RAM No Drive No OS picture

Supermicro 510-2 U1 Rack Mount 3.30GHz 4-Core 4GB RAM No Drive No OS

$179.99



Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter picture

Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter

$225.00



Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server picture

Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server

$649.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers* picture

Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers*

$159.99