summaryrefslogtreecommitdiffstats
path: root/package/base-files/files.old/lib/firstboot/10_no_fo_clear_overlay
blob: 8a7d9b066f8ce8aa1aaeb8f7bd24dc43a439a1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

no_fo_clear_overlay() {
    # switch back to squashfs temporarily
    pivot /rom /mnt

    # get rid of the old overlay
    umount -l /mnt

    # another umount to get rid of the bind from /tmp/root
    umount -l /mnt
}

boot_hook_add no_fo no_fo_clear_overlay