add preinit modularization work by Daniel Dickinson (cshore)
[openwrt/staging/mkresin.git] / package / base-files / files / lib / preinit / 70_initramfs_test
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 initramfs_test() {
6 if [ -n "$INITRAMFS" ]; then
7 boot_run_hook initramfs
8 break
9 fi
10 }
11
12 boot_hook_add preinit_main initramfs_test
13