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

Bastian Bittorf bittorf at bluebottle.com
Thu Jan 21 06:53:48 EST 2016


* 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
_______________________________________________
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