.profile 1018 B

1234567891011121314151617181920212223242526272829303132
  1. #120221 moved this code here from /etc/profile, also take 'exec' prefix off call to xwin.
  2. if [ ! -f /usr/bin/X ];then
  3. #v2.00r1 now support a text-mode-only puppy...
  4. if [ -f /usr/local/bin/elinks ];then
  5. if [ ! -f /tmp/bootcnt.txt ];then
  6. touch /tmp/bootcnt.txt
  7. #exec /usr/local/bin/elinks file:///usr/share/doc/index.html
  8. #/usr/local/bin/elinks file:///usr/share/doc/index.html & #110804 110807
  9. /usr/local/bin/elinks file:///usr/share/doc/index.html
  10. fi
  11. else
  12. echo
  13. echo "\\033[1;31mSorry, cannot start X. Link /usr/bin/X missing."
  14. echo -n "(suggestion: type 'xorgwizard' to run the Xorg Video Wizard)"
  15. echo -e "\\033[0;39m"
  16. fi
  17. else
  18. if [ -f /root/.xorgwizard-reenter ];then #130423 see /usr/sbin/xorgwizard-cli 130513 also see init (in initrd)
  19. xorgwizard-cli
  20. fi
  21. #want to go straight into X on bootup only...
  22. if [ ! -f /tmp/bootcnt.txt ];then
  23. touch /tmp/bootcnt.txt
  24. # aplay -N /usr/share/audio/bark.au
  25. dmesg > /tmp/bootkernel.log
  26. #exec xwin
  27. #xwin & #110804 110807
  28. xwin
  29. fi
  30. fi