Lines 155-177
Link Here
|
155 |
|
155 |
|
156 |
newdoc extras/volume_id/README README_volume_id |
156 |
newdoc extras/volume_id/README README_volume_id |
157 |
|
157 |
|
158 |
# Create some nodes that we know we need. |
|
|
159 |
# set the time/date so we can see in /dev which ones we copied over |
160 |
# in the udev-start.sh script |
161 |
mkdir ${D}/lib/udev/devices |
162 |
|
163 |
mknod ${D}/lib/udev/devices/null c 1 3 |
164 |
chmod 666 ${D}/lib/udev/devices/null |
165 |
touch -t 200010220101 ${D}/lib/udev/devices/null |
166 |
|
167 |
mknod ${D}/lib/udev/devices/zero c 1 5 |
168 |
chmod 666 ${D}/lib/udev/devices/zero |
169 |
touch -t 200010220101 ${D}/lib/udev/devices/zero |
170 |
|
171 |
mknod ${D}/lib/udev/devices/console c 5 1 |
172 |
chmod 600 ${D}/lib/udev/devices/console |
173 |
chown root:tty ${D}/lib/udev/devices/console |
174 |
touch -t 200010220101 ${D}/lib/udev/devices/console |
175 |
} |
158 |
} |
176 |
|
159 |
|
177 |
pkg_preinst() { |
160 |
pkg_preinst() { |
Lines 192-197
Link Here
|
192 |
then |
175 |
then |
193 |
rm -f ${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug |
176 |
rm -f ${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug |
194 |
fi |
177 |
fi |
|
|
178 |
|
179 |
# is there a stale coldplug initscript? (CONFIG_PROTECT leaves it behind) |
180 |
coldplug_stale="" |
181 |
if [ -f "${ROOT}/etc/init.d/coldplug" ] |
182 |
then |
183 |
coldplug_stale="1" |
184 |
fi |
185 |
|
186 |
# Create some nodes that we know we need. |
187 |
# set the time/date so we can see in /dev which ones we copied over |
188 |
# in the udev-start.sh script |
189 |
mkdir -p ${ROOT}/lib/udev/devices |
190 |
|
191 |
if [ ! -e ${ROOT}/lib/udev/devices/null ] ; then |
192 |
mknod ${ROOT}/lib/udev/devices/null c 1 3 |
193 |
fi |
194 |
chmod 666 ${ROOT}/lib/udev/devices/null |
195 |
touch -t 200010220101 ${ROOT}/lib/udev/devices/null |
196 |
|
197 |
if [ ! -e ${ROOT}/lib/udev/devices/zero ] ; then |
198 |
mknod ${ROOT}/lib/udev/devices/zero c 1 5 |
199 |
fi |
200 |
chmod 666 ${ROOT}/lib/udev/devices/zero |
201 |
touch -t 200010220101 ${ROOT}/lib/udev/devices/zero |
202 |
|
203 |
if [ ! -e ${ROOT}/lib/udev/devices/console ] ; then |
204 |
mknod ${ROOT}/lib/udev/devices/console c 5 1 |
205 |
fi |
206 |
chmod 600 ${ROOT}/lib/udev/devices/console |
207 |
chown root:tty ${ROOT}/lib/udev/devices/console |
208 |
touch -t 200010220101 ${ROOT}/lib/udev/devices/console |
209 |
|
195 |
} |
210 |
} |
196 |
|
211 |
|
197 |
pkg_postinst() { |
212 |
pkg_postinst() { |
Lines 244-249
Link Here
|
244 |
ewarn |
259 |
ewarn |
245 |
fi |
260 |
fi |
246 |
|
261 |
|
|
|
262 |
if [[ ${coldplug_stale} == "1" ]] ; then |
263 |
ewarn "A stale coldplug init script found. You should run:" |
264 |
ewarn |
265 |
ewarn " rc-update del coldplug" |
266 |
ewarn " rm -f /etc/init.d/coldplug" |
267 |
ewarn |
268 |
ewarn "udev now provides its own coldplug functionality." |
269 |
fi |
270 |
|
247 |
einfo |
271 |
einfo |
248 |
einfo "For more information on udev on Gentoo, writing udev rules, and" |
272 |
einfo "For more information on udev on Gentoo, writing udev rules, and" |
249 |
einfo " fixing known issues visit:" |
273 |
einfo " fixing known issues visit:" |