File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -802,9 +802,10 @@ install_survival_script()
802802 if test -d " ${SYS_PATH:? } /addon.d" ; then
803803 ui_msg ' Installing survival script...'
804804 write_file_list " ${TMP_PATH:? } /files" " ${TMP_PATH:? } /files/" " ${TMP_PATH:? } /backup-filelist.lst"
805- replace_line_in_file_with_file " ${TMP_PATH:? } /addon.d/${1:? } .sh" ' %PLACEHOLDER-1%' " ${TMP_PATH:? } /backup-filelist.lst"
805+ replace_line_in_file_with_file " ${TMP_PATH:? } /origin/addon.d/${1:? } .sh" ' %PLACEHOLDER-1%' " ${TMP_PATH:? } /backup-filelist.lst"
806+ set_perm 0 0 0755 " ${TMP_PATH:? } /origin/addon.d/${1:? } .sh"
806807 test " ${DRY_RUN:? } " -eq 0 || return
807- copy_file " ${TMP_PATH:? } /addon.d/${1:? } .sh" " ${SYS_PATH:? } /addon.d"
808+ copy_file " ${TMP_PATH:? } /origin/ addon.d/${1:? } .sh" " ${SYS_PATH:? } /addon.d"
808809 else
809810 ui_warning ' addon.d scripts are not supported by your ROM'
810811 ui_msg_empty_line
@@ -1506,11 +1507,6 @@ prepare_installation()
15061507 set_perm 0 2000 0755 " ${entry:? } "
15071508 done
15081509 fi
1509-
1510- if test -d " ${TMP_PATH:? } /addon.d" ; then
1511- set_std_perm_recursive " ${TMP_PATH:? } /addon.d"
1512- find " ${TMP_PATH:? } /addon.d" -type f -name ' *.sh' -exec chmod 0755 ' {}' ' +' || ui_error ' Failed to chmod addon.d scripts'
1513- fi
15141510}
15151511
15161512_something_exists ()
File renamed without changes.
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ APP_CALENDARSYNC="$(parse_setting 'app' 'CALENDARSYNC' "${APP_CALENDARSYNC:?}")"
2929if test " ${SETUP_TYPE:? } " = ' install' ; then
3030 ui_msg ' Extracting...'
3131 custom_package_extract_dir ' origin' " ${TMP_PATH:? } "
32- custom_package_extract_dir ' addon.d' " ${TMP_PATH:? } "
3332 create_dir " ${TMP_PATH:? } /files/etc"
3433
3534 ui_msg ' Configuring...'
You can’t perform that action at this time.
0 commit comments