pinstall.sh 273 B

123456789101112
  1. #!/bin/sh
  2. if [ "`pwd`" != "/" ];then
  3. echo '#!/bin/sh
  4. exec xchat' > ./usr/local/bin/defaultchat
  5. chmod 755 ./usr/local/bin/defaultchat
  6. echo "setting xchat as default chat"
  7. else
  8. echo '#!/bin/sh
  9. exec xchat' > /usr/local/bin/defaultchat
  10. chmod 755 /usr/local/bin/defaultchat
  11. fi