Generate addon.d script at install time

Change-Id: I9d1beba09d3007de597c80af5245290aa146c94d
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
This commit is contained in:
Paul Keith
2017-05-02 14:46:23 -05:00
parent e191ff24c4
commit 7acb09f694
2 changed files with 10 additions and 17 deletions

View File

@@ -63,6 +63,14 @@ ui_print "Extracting files"
cd /tmp
unzip -o "$ZIP" system/*
cd system
ui_print "Generating addon.d file"
cat addon.d/addond_head > addon.d/30-gapps.sh
for f in `exec_util "find . -type f"`; do
line=$(echo "$f" | sed 's/\.\///')
echo "$line" >> addon.d/30-gapps.sh
done
cat addon.d/addond_tail >> addon.d/30-gapps.sh
ui_print "Preparing files for copying"
for dirs in $DIRS; do
set_perm 0755 $dir
for d in `exec_util "find ./$dir -type d"`; do