1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.14 2007-03-06 00:10:26 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.17 2007-09-01 19:13:18 niro Exp $ |
3 |
|
|
4 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
5 |
source $rc_functions |
source $rc_functions |
72 |
# copy over any persistant things |
# copy over any persistant things |
73 |
if [[ -d /lib/udev/devices ]] |
if [[ -d /lib/udev/devices ]] |
74 |
then |
then |
75 |
cp --preserve=all --recursive --update /lib/udev/devices/* /dev |
cp --preserve=all --recursive --update /lib/udev/devices/* /dev 2>/dev/null |
76 |
fi |
fi |
77 |
|
|
78 |
# not provided by sysfs but needed |
# not provided by sysfs but needed |
173 |
fstype=ramfs |
fstype=ramfs |
174 |
# tmpfs was suggested by Greg Kroah-Hartman |
# tmpfs was suggested by Greg Kroah-Hartman |
175 |
kernel_supports_fs tmpfs && fstype=tmpfs |
kernel_supports_fs tmpfs && fstype=tmpfs |
176 |
mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755 |
mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M |
177 |
evaluate_retval |
evaluate_retval |
178 |
|
|
179 |
# if a device tarball exists load it and if it is activated |
# if a device tarball exists load it and if it is activated |
215 |
fi |
fi |
216 |
evaluate_retval |
evaluate_retval |
217 |
|
|
218 |
|
/lib/udev/write_root_link_rule |
219 |
populate_udev |
populate_udev |
220 |
|
|
221 |
# create nodes that udev can't |
# create nodes that udev can't |
266 |
fi |
fi |
267 |
fi |
fi |
268 |
|
|
269 |
|
## load usbfs ## |
270 |
|
if kernel_supports_fs usbfs |
271 |
|
then |
272 |
|
echo -e ${COLOREDSTAR}"Mounting usbfs at /proc/bus/usb ..." |
273 |
|
mount -n -t usbfs usbfs /proc/bus/usb |
274 |
|
evaluate_retval |
275 |
|
fi |
276 |
|
|
277 |
### services state dir ### |
### services state dir ### |
278 |
echo -e ${COLOREDSTAR}"Mounting tmpfs at ${svcdir} ..." |
echo -e ${COLOREDSTAR}"Mounting tmpfs at ${svcdir} ..." |
279 |
mount -n -t tmpfs tmpfs "${svcdir}" -o rw,mode=0644,size="${svcsize}"k |
mount -n -t tmpfs tmpfs "${svcdir}" -o rw,mode=0644,size="${svcsize}"k |