#!/bin/sh

# Remove swap entry from /etc/fstab 
# We are not using it as btrfs does not support swap and we have
# separate mmc block for swap

# Fail if fstab is not installed yet
# so this oneshot job will be run again later
[ ! -f /etc/fstab ] && exit 1

grep -q "/swap" /etc/fstab && sed -i '/\/swap/d' /etc/fstab
exit 0
