pinstall.sh 643 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. #post-install script.
  3. #creatuppy: current directory is rootfs-complete, which has the final filesystem.
  4. #pupget: current directory is /.
  5. if [ ! -f ./usr/local/bin/beaver ];then
  6. #ln -s leafpad ./usr/local/bin/beaver
  7. if [ ! -f ./usr/bin/geany ];then
  8. if [ ! -f ./usr/bin/gedit ];then
  9. echo '#!/bin/sh' > ./usr/local/bin/defaulttexteditor
  10. echo 'exec leafpad "$@"' >> ./usr/local/bin/defaulttexteditor
  11. chmod 755 ./usr/local/bin/defaulttexteditor
  12. fi
  13. fi
  14. echo '#!/bin/sh' > ./usr/local/bin/defaulttextviewer
  15. echo 'exec leafpad "$@"' >> ./usr/local/bin/defaulttextviewer
  16. chmod 755 ./usr/local/bin/defaulttextviewer
  17. fi