summarylogtreecommitdiffstats
path: root/fakeuptime_hook
blob: 0be540898a129a73dfc21041934e49c9b8572376 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ash

run_latehook() {
    [ "$init" == "/sbin/init" ] && \
    [ -e /new_root/usr/bin/init_fakeuptime.sh ] && \
    [ -e /new_root/usr/bin/bash ] && \
    export init=/usr/bin/init_fakeuptime.sh
}

# vim: set ft=sh ts=4 sw=4 et: