openwrt-packages/utils/btrfs-progs/files/btrfs-scan.init

10 lines
150 B
Bash

#!/bin/sh
preinit_btrfs_scan() {
if grep -q btrfs /proc/filesystems; then
btrfs device scan
fi
}
boot_hook_add preinit_main preinit_btrfs_scan