Advertisement
Guest User

Untitled

a guest
Sep 24th, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff --git a/init-script b/init-script
  2. index 2b92ee5..48a4a5e 100755
  3. --- a/init-script
  4. +++ b/init-script
  5. @@ -148,6 +148,8 @@ mount_stowaways() {
  6. mount --bind /data/${data_subdir}/.stowaways/${DEFAULT_OS} /target
  7. mkdir /target/data # in new fs
  8. mount --bind /data/${data_subdir} /target/data
  9. + mkdir /target/sdcard0 # in new fs
  10. + mount --bind /data/media/0 /target/sdcard0
  11. else
  12. echo "Failed to mount /target, device node '$DATA_PARTITION' not found!" >> /diagnosis.log
  13. fi
  14. @@ -156,6 +158,7 @@ mount_stowaways() {
  15.  
  16. umount_stowaways() {
  17. if [ ! -z $DATA_PARTITION ]; then
  18. + umount /target/sdcard0
  19. umount /target/data
  20. umount /target
  21. umount /data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement