Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/udev

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 973 by niro, Sun Apr 25 15:05:26 2010 UTC revision 974 by niro, Mon Apr 26 18:39:12 2010 UTC
# Line 67  seed_dev() Line 67  seed_dev()
67   [ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1   [ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1
68   [ ! -c /dev/null ] && mknod /dev/null c 1 3   [ ! -c /dev/null ] && mknod /dev/null c 1 3
69    
70     # create kmsg too, so udev can add its start-message to dmesg
71     [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
72    
73   # copy over any persistant things   # copy over any persistant things
74   if [[ -d /lib/udev/devices ]]   if [[ -d /lib/udev/devices ]]
75   then   then
# Line 98  start_udev() Line 101  start_udev()
101   fstype=ramfs   fstype=ramfs
102   # tmpfs was suggested by Greg Kroah-Hartman   # tmpfs was suggested by Greg Kroah-Hartman
103   kernel_supports_fs tmpfs && fstype=tmpfs   kernel_supports_fs tmpfs && fstype=tmpfs
104     # mount devtmpfs if supported
105     kernel_supports_fs devtmpfs && fstype=devtmpfs
106   mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M   mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M
107   evaluate_retval   evaluate_retval
108    
# Line 154  start_udev() Line 159  start_udev()
159   # same thing as /dev/.devfsd   # same thing as /dev/.devfsd
160   touch /dev/.udev   touch /dev/.udev
161  }  }
162    
163    stop_udev()
164    {
165     echo -e ${COLOREDSTAR}"  Stopping udevd daemon ..."
166     start-stop-daemon --stop --exec /sbin/udevd
167     evaluate_retval
168    }

Legend:
Removed from v.973  
changed lines
  Added in v.974