[OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

John Crispin blogic at openwrt.org
Thu Jan 21 07:03:50 EST 2016



On 21/01/2016 12:53, Bastian Bittorf wrote:
> * Petr Štetiar <ynezz at true.cz> [21.01.2016 12:22]:
>>  boot() {
>> +	[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && exit 0
> 
> thank you! can you please do in this line a:
> && return
> 
> and introduce a helper (maybe overengineered 8-)
> 
> deps_ok() {
> 	[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ]
> }
> 
> bye, bastian

hang on there, this looks like bastel basti scriptowahn
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list