aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit/40_init_shm
blob: 8971116a49b7727ff00a2a5eafea133b3dec6295 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

init_shm() {
    [ -d /dev/shm ] || mkdir -p /dev/shm
}

boot_hook_add preinit_essential init_shm