From 41bb14bb44bb8636be800d1b619241cd4a387131 Mon Sep 17 00:00:00 2001 From: Alexis Martinez <63435223+alexmartz710@users.noreply.github.com> Date: Wed, 14 Dec 2022 18:38:01 -0500 Subject: [PATCH] Adding remount for /etc/init.d For some reason my devices that have emagisk or magisk v25.2 need an extra mount -o remount,rw /system/etc/init.d to be able to download 55atlas to it --- atlas.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/atlas.sh b/atlas.sh index 53669f5..2f01cda 100755 --- a/atlas.sh +++ b/atlas.sh @@ -1,5 +1,5 @@ #!/system/bin/sh -# version 1.5.6 +# version 1.5.7 #Version checks Ver55atlas="1.0" @@ -58,6 +58,7 @@ install_atlas(){ # install 55atlas mount -o remount,rw /system +mount -o remount,rw /system/etc/init.d if [ -f /sdcard/useAconfDevelop ] ;then until /system/bin/curl -s -k -L --fail --show-error -o /system/etc/init.d/55atlas https://raw.githubusercontent.com/dkmur/aconf/develop/55atlas || { echo "`date +%Y-%m-%d_%T` Download 55atlas failed, exit script" >> $logfile ; exit 1; } ;do sleep 2 @@ -102,6 +103,7 @@ else echo "`date +%Y-%m-%d_%T` ATVdetails sender installed, from master" >> $logfile fi mount -o remount,ro /system +mount -o remount,ro /system/etc/init.d # get version @@ -355,6 +357,7 @@ if [[ $(basename $0) = "atlas_new.sh" ]] ;then old55=$(head -2 /system/etc/init.d/55atlas | grep '# version' | awk '{ print $NF }') if [ $Ver55atlas != $old55 ] ;then mount -o remount,rw /system + mount -o remount,rw /system/etc/init.d if [ -f /sdcard/useAconfDevelop ] ;then until /system/bin/curl -s -k -L --fail --show-error -o /system/etc/init.d/55atlas https://raw.githubusercontent.com/dkmur/aconf/develop/55atlas || { echo "`date +%Y-%m-%d_%T` Download 55atlas failed, exit script" >> $logfile ; exit 1; } ;do sleep 2 @@ -367,6 +370,7 @@ if [[ $(basename $0) = "atlas_new.sh" ]] ;then chmod +x /system/etc/init.d/55atlas fi mount -o remount,ro /system + mount -o remount,ro /system/etc/init.d new55=$(head -2 /system/etc/init.d/55atlas | grep '# version' | awk '{ print $NF }') echo "`date +%Y-%m-%d_%T` 55atlas $old55=>$new55" >> $logfile fi