[arch-general] [PATCH 28/48] Use bash-style conditionals when setting up the hardware clock.

Dave Reisner d at falconindy.com
Thu Aug 19 00:56:32 EDT 2010


On Thu, Aug 19, 2010 at 02:34:50PM +1000, Allan McRae wrote:
> On 19/08/10 14:23, Victor Lowther wrote:
> >I am missing the difference. Diff please?
> 
> Yours:
> >>>+ /bin/mknod /dev/rtc c $major $minor
> 
> His:
> >>/bin/mknod /dev/${dev##*/} c $major $minor
> 
> Yours creates /dev/rtc and his creates /dev/rtc and /dev/rtc0
> 
> Allan
> 
> 

Couldn't we avoid all this by just flipping a switch in the kernel?

CONFIG_RTC_DRV_CMOS=y

If it's compiled into the kernel, udev picks it up and creates the /dev
nodes for us.

d


More information about the arch-general mailing list