Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block perennialmind

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ubnt-fixtime-mtime.patch
--- a/etc/init.d/ubnt-rcS
+++ b/etc/init.d/ubnt-rcS
@@ -29,8 +29,11 @@
if [ ! -e "$LAST_TIME_FILE" ]; then
echo '2015-01-01 00:00' >$LAST_TIME_FILE
+ touch -d '2015-01-01 00:00' $LAST_TIME_FILE
- /bin/date -s "$(cat $LAST_TIME_FILE)" >/dev/null 2>&1
+ local last_time="$(date -r $LAST_TIME_FILE +%s)"
You can’t perform that action at this time.