probleme with udev

Development on core packages and the distribution goes on in here.

probleme with udev

Postby nymar » Wed Apr 24, 2013 10:36 am

Hi
I'm using raspberrypi
$this->bbcode_second_pass_code('', '[root@raspberrypi sbin]# uname -a
Linux raspberrypi 3.6.11-rt31-cutdown+ #1 PREEMPT RT Mon Apr 8 18:57:31 CEST 2013 armv6l ARMv6-compatible processor rev 7 (v6l) BCM2708 GNU/Linux
')
When i run the following script
$this->bbcode_second_pass_code('', ' #!/bin/sh

DEPMOD=`which depmod`
UDEVCTRL=`which udevcontrol`
UDEVADM=`which udevadm`

install -D -m 700 usbcanII.ko /lib/modules/`uname -r`/kernel/drivers/usb/misc/usbcanII.ko
install -m 700 usbcanII.sh /usr/sbin/
if [ -d /etc/hotplug ] ; then
install -m 777 usbcanII/usbcanII /etc/hotplug/usb/ ;
install -m 644 usbcanII/usbcanII.usermap /etc/hotplug/usbcanII.usermap
fi
install -m 644 ../10-kvaser.rules /etc/udev/rules.d

if [ `udevd --version` -lt 128 ] ; then
$UDEVCTRL reload_rules ;
else
$UDEVADM control --reload-rules ;
fi

$DEPMOD -a
if [ "$?" -ne 0 ] ; then
echo Failed to execute $DEPMOD -a
fi')
I got these errors
$this->bbcode_second_pass_code('', '[root@raspberrypi usbcanII]# ./installscript.sh
which: no udevd in (/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin)
./installscript.sh: line 15: udev: command not found
./installscript.sh: line 15: [: -lt: unary operator expected
[root@raspberrypi usbcanII]# which udev
which: no udev in (/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin)
[root@raspberrypi usbcanII]# PATH=/lib/udev/:$PATH
[root@raspberrypi usbcanII]# ./installscript.sh
which: no udevcontrol in (/lib/udev/:/lib/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin)')
nymar
 
Posts: 8
Joined: Wed Apr 24, 2013 10:27 am

Re: probleme with udev

Postby nymar » Wed Apr 24, 2013 11:19 am

As udevd version <> 128 i made the following changes
$this->bbcode_second_pass_code('', '#!/bin/sh

DEPMOD=`which depmod`
#UDEVCTRL=`which udevcontrol`
UDEVADM=`which udevadm`

install -D -m 700 usbcanII.ko /lib/modules/`uname -r`/kernel/drivers/usb/misc/usbcanII.ko
install -m 700 usbcanII.sh /usr/sbin/
if [ -d /etc/hotplug ] ; then
install -m 777 usbcanII/usbcanII /etc/hotplug/usb/ ;
install -m 644 usbcanII/usbcanII.usermap /etc/hotplug/usbcanII.usermap
fi
install -m 644 ../10-kvaser.rules /etc/udev/rules.d

# if [ `udevd --version` -lt 128 ] ; then
# $UDEVCTRL reload_rules ;
# else
$UDEVADM control --reload-rules ;
# fi

$DEPMOD -a
if [ "$?" -ne 0 ] ; then
echo Failed to execute $DEPMOD -a
fi')
but i noticed something what happens if /etc/hotplug doesn't exist ?? is it normal ? because for my situation it doesn't exist
nymar
 
Posts: 8
Joined: Wed Apr 24, 2013 10:27 am


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 3 guests