1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh if [ "$2" = "POST-INSTALL" ]; then mkdir -p ${PKG_PREFIX}/share/games SCORES="gweled.easy.scores gweled.timed.scores" for i in ${SCORES}; do if [ ! -f ${PKG_PREFIX}/share/games/${i} ]; then touch -f ${PKG_PREFIX}/share/games/${i} chown games:games ${PKG_PREFIX}/share/games/${i} chmod 0664 ${PKG_PREFIX}/share/games/${i} fi done fi