mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-11-29 19:56:38 -05:00
More fixes
This commit is contained in:
parent
8a4f0bef72
commit
d6148bb4df
2 changed files with 8 additions and 3 deletions
|
|
@ -67,8 +67,10 @@ export -f enableZram;
|
|||
|
||||
enabledForcedEncryption() {
|
||||
cd $base$1;
|
||||
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
||||
echo "Enabled forceencrypt for $1";
|
||||
if [[ $1 != *"mako"* ]]; then #Forced encryption seems to prevent some devices from booting
|
||||
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
||||
echo "Enabled forceencrypt for $1";
|
||||
fi;
|
||||
cd $base;
|
||||
}
|
||||
export -f enabledForcedEncryption;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue