commit | 25d7b4c53982f48ebd78b5bd7d0d6856f49cdf10 | [log] [tgz] |
---|---|---|
author | Pierre-Hugues Husson <phh@phh.me> | Tue Apr 03 00:13:48 2018 +0200 |
committer | Pierre-Hugues Husson <phh@phh.me> | Tue Apr 03 00:13:48 2018 +0200 |
tree | 0a4842855710c8c425fee751d52d79eeaf7feeff | |
parent | 1e27cc1157a6de099ad07709f0cb7972c058192e [diff] [blame] |
Resize /system in boot Is it really safe? Tested on Allview V3 Viper and Huawei Mate 9
diff --git a/resize-system.sh b/resize-system.sh new file mode 100644 index 0000000..cc90237 --- /dev/null +++ b/resize-system.sh
@@ -0,0 +1,11 @@ +#!/system/bin/sh + +set -e + +if [ "grep ' /system ' /proc/mounts |cut -d ' ' -f 1 |wc -l" -ne 1 ];then + exit 0 +fi + +mount -o remount,rw /system +resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1) +mount -o remount,ro /system