packages/utils/btrfs-progs/files/btrfs-scan.init
Stefan Hellermann 02f732fb5d btrfs-progs: Fix init script
the init script calls the old btrfsctl util, which is not included in
btrfs-progs anymore. Update the init script to call "btrfs device scan"
which assembles multi device btrfs filesystems.

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
2014-12-08 14:02:28 +01:00

9 lines
141 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org
START=19
start() {
grep -q btrfs /proc/modules && /usr/bin/btrfs device scan
}