This commit is contained in:
samson 2018-12-06 14:03:05 +08:00
parent 5c52acf20a
commit 5185fff59a
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ apply () {
info "Adding $OPTION to fstab"
add_option_to_fstab $PARTITION $OPTION
info "Remounting $PARTITION from fstab"
remount_partition $PARTITION
is_mounted $PARTITION
if [ $FNRET = 1 ]; then
mount $PARTITION
else
remount_partition $PARTITION
fi
elif [ $FNRET = 3 ]; then
info "Remounting $PARTITION from systemd"
add_option_to_systemd $SERVICEPATH $OPTION $SERVICENAME