pinstall.sh 529 B

12345678910111213141516171819
  1. #!/bin/sh
  2. #post-install script.
  3. #unleashed: current directory is rootfs-complete, which has the final filesystem.
  4. #petget: current directory is /.
  5. #RUNNINGPS="`ps`"
  6. #if [ "`echo "$RUNNINGPS" | grep "petget"`" = "" ];then
  7. if [ ! "`pwd`" = "/" ];then
  8. # [ ! -f ./usr/local/bin/leafpad ] && ln -s geanyshell ./usr/local/bin/leafpad
  9. # [ ! -f ./usr/local/bin/beaver ] && ln -s geanyshell ./usr/local/bin/beaver
  10. echo '#!/bin/sh' > ./usr/local/bin/defaulttexteditor
  11. echo 'exec geany "$@"' >> ./usr/local/bin/defaulttexteditor
  12. fi