OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hotplug issue Slackware 10, won't initialize script
uberjoe
post Sep 29 2004, 10:33 AM
Post #1





Group: Members
Posts: 131
Joined: 24-March 04
Member No.: 2,471



I'm trying to get hotplug to setup my usb0 interface when I put the z in the cradle. I put this script
QUOTE
#! /bin/bash
typeset -i num
num=`ifconfig | grep usb0 | wc -l`
if [ $num -eq 0 ] ; then
ifconfig usb0 192.168.129.200 netmask 255.255.255.255 up
route add -host 192.168.129.201 usb0
fi

in /etc/hotplug/usb and called it usbdnet and usbnet, neither one worked. If I run the commands in the script manually as root, I am successful, but the script itself does not seem to work for me. Here is my relevent info
QUOTE
pc: 192.168.129.200 mask 255.255.255.255 route 192.168.129.201
z: 192.168.129.201 mask 255.255.255.0 route 192.168.129.200


The script is in /etc/hotplug/usb and my user's group has permission to execute it. Any thoughts on how to get this working?
Go to the top of the page
 
+Quote Post
uberjoe
post Feb 21 2005, 03:14 PM
Post #2





Group: Members
Posts: 131
Joined: 24-March 04
Member No.: 2,471



*bump*
Go to the top of the page
 
+Quote Post
Howitzer
post Apr 20 2005, 08:55 PM
Post #3





Group: Members
Posts: 24
Joined: 17-December 03
Member No.: 1,217



This may be relevant despite my gettting this working in CentOS 4.

I had to change the ifconfig and route lines to:

/sbin/ifconfig
/sbin/route

and the filename had to be usbnet, not usbdnet.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st December 2014 - 01:31 PM