summaryrefslogtreecommitdiff
path: root/modules.d/95fstab-sys/module-setup.sh
blob: 56dd8fcde71f94f94a4b3ae49a685f2f854fb4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
    test -f /etc/fstab.sys || [[ -n $add_fstab  ||  -n $fstab_lines ]]
}

depends() {
    echo fs-lib
}

install() {
    [ -f /etc/fstab.sys ] && inst /etc/fstab.sys
    inst_hook pre-pivot 00 "$moddir/mount-sys.sh"
    inst_hook cmdline 00 "$moddir/wait-mount-dev.sh"
}