Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 133631 | Differences between
and this patch

Collapse All | Expand All

(-)scripts/orig-makedev.sh (-11 / +5 lines)
Lines 4-10 Link Here
4
#
4
#
5
MAJOR_DATA=120
5
MAJOR_DATA=120
6
MAJOR_CONTROL=121
6
MAJOR_CONTROL=121
7
DIR="/dev/x10"
7
DIR="${D}lib/udev/devices/x10"
8
if [ $# -eq 3 ]
8
if [ $# -eq 3 ]
9
then
9
then
10
	MAJOR_DATA=$1
10
	MAJOR_DATA=$1
Lines 22-36 Link Here
22
	exit 0
22
	exit 0
23
fi	
23
fi	
24
24
25
if [ -d /dev/x10 ]
26
then
27
	echo "/dev/x10 already exists, not remaking devices"
28
	exit 0
29
fi
30
31
echo "Creating X10 devices in $DIR with data_major=$MAJOR_DATA and control_major=$MAJOR_CONTROL"
25
echo "Creating X10 devices in $DIR with data_major=$MAJOR_DATA and control_major=$MAJOR_CONTROL"
32
26
33
if [ ! -d $DIR ]; then mkdir $DIR; fi
27
if [ ! -d $DIR ]; then mkdir -p $DIR; fi
34
28
35
for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
29
for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
36
do
30
do
Lines 102-112 Link Here
102
96
103
mknod $DIR/.api c $MAJOR_CONTROL 240
97
mknod $DIR/.api c $MAJOR_CONTROL 240
104
98
105
if [ -d /etc/udev/devices ]; then
99
if [ -d /lib/udev/devices ]; then
106
  cp -arp $DIR /etc/udev/devices/
100
  # cp -arp $DIR /etc/udev/devices/
107
  echo "*********************************************************"
101
  echo "*********************************************************"
108
  echo "* You appear to be using udev.  A copy of the devices   *"
102
  echo "* You appear to be using udev.  A copy of the devices   *"
109
  echo "* have been placed in /etc/udev/devices so that they    *"
103
  echo "* have been placed in /lib/udev/devices so that they    *"
110
  echo "* automatically be created whenever the machine starts. *"
104
  echo "* automatically be created whenever the machine starts. *"
111
  echo "*********************************************************"
105
  echo "*********************************************************"
112
fi
106
fi

Return to bug 133631