Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit with error after reboot. mkdir: can't create directory '/sdcard/' #56

Closed
romanegunkov opened this issue Aug 6, 2020 · 1 comment

Comments

@romanegunkov
Copy link
Contributor

After reboot smartphone, ACC start before then file system was mounted in directory "/sdcard/". So that ACC exiting with error in function "misc_stuff" in file "misc-functions.sh", because "set -e".

+ acc --log

(i) Press q to abort/quit

###Mon Nov  8 23:26:34 MSK 1971###
versionCode=202007260
+ misc_stuff 
+ set -eu
+ mkdir -p /data/adb/acc-data /sdcard/Download/acc
mkdir: can't create directory '/sdcard/': No such file or directory
+ exxit
+ typeset 'exitCode=1'
+ set +eux
mkdir: can't create directory '/sdcard/': No such file or directory
/data/adb/acc/accd.sh: can't create /sdcard/Download/acc/acc-logs-NX569J.tar.bz2: No such file or directory

I maked some changes in "misc-functions.sh" for show it. Diff in file "misc-functions.sh.diff.txt". And report after reboot available in "accd-NX569J.log", which from "acc-logs-NX569J.tar.bz2".

In short, I wrapped it in a loop with pause.

mkdir -p ${config%/*} $userDir
until mkdir -p ${config%/*} $userDir
do
  sleep 10
done

misc-functions.sh.sha1sum.txt
misc-functions.sh.diff.txt
accd-NX569J.log

romanegunkov referenced this issue Aug 9, 2020
- Adaptive --info and --print (config) outputs
- Copy README.md to /sdcard/Download/acc/.
- Fixed "capacity_sync freezes when ghost charging is detected".
- General fixes & optimizations
- If supported, prepend "$LINENO: " to log lines.
- MTK troubleshooting info (readme > troubleshooting)
- Updated framework (in sync with fbind)
@romanegunkov
Copy link
Contributor Author

Fixed by 6f183e1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant