forked from dorimanx/initramfs3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Action script for STweaks for Fix File System Check and Repair on eve…
…ry boot
- Loading branch information
1 parent
6da831c
commit f322a42
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/sbin/busybox sh | ||
|
||
if [ "a$2" != "a" ]; then | ||
case "$2" in | ||
on) | ||
echo 1 > $EXTERNAL_STORAGE/.fix_fs_on_boot_auto; | ||
;; | ||
off) | ||
rm -f $EXTERNAL_STORAGE/.fix_fs_on_boot_auto; | ||
;; | ||
esac; | ||
fi; | ||
|
||
if [ -f $EXTERNAL_STORAGE/.fix_fs_on_boot_auto ]; then | ||
echo on; | ||
else | ||
echo off; | ||
fi; |