home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / trionbbs110 / Trion / startup < prev    next >
Encoding:
Text File  |  1998-10-06  |  4.3 KB  |  209 lines

  1.  
  2. ;;;  Trion BBS startup script   (c) 94-98 by Paul Spijkerman
  3. ;;;
  4. ;;;  Place something as the line below in your startup-sequence
  5. ;;;  for trion to start in it's own shell.
  6. ;;;
  7. ;;;  newshell con:5/154/690/115/Trion  from  dh2:trion/startup
  8. ;;;
  9. ;;;  newshell con:5/154/690/115/Trion  from  trion:startup
  10. ;;;
  11. ;;;  Or just 'execute trion:startup' to start it in an existing shell
  12. ;;;
  13. ;;;  You have to change the Trion: part in the lines above too
  14. ;;;  the path where you stored the BBS or make an assign before
  15. ;;;  the startup like this:
  16. ;;;
  17. ;;;  assign trion: dh2:trion
  18.  
  19.  
  20. echo  "Trion BBS startup script"
  21. echo  ""
  22. echo  "Starting up nodes 0 & 1"
  23. echo  ""
  24.  
  25.  
  26. ;;; All the references to paths where the BBS and data is stored
  27.  
  28. ;assign  trion:     dh2:trion
  29.  
  30.  
  31. ;;; Short cuts to where I store my files , optional
  32.  
  33. assign  downloading:    trion:files
  34. assign  down.amiga:     trion:files
  35. assign  down.pc:        trion:files
  36.  
  37. ; assign  downloading:    dh1:downloading
  38. ; assign  down.amiga:     dh1:down.amiga
  39. ; assign  down.pc:        dh1:down.pc
  40.  
  41.  
  42.  
  43.  
  44. ;;;  Don't do anything if the assign Trion: isn't available
  45.  
  46. if not exists trion:
  47.    echo "Error: You need an assign trion: to your BBS directory."
  48.    quit
  49. endif
  50.  
  51.  
  52.  
  53. ;;; Make sure old third party doors that need 'TRON:' still work
  54.  
  55. assign  tron:      trion:
  56.  
  57. ;;; Make a shortcut to the doors directory, probably needed for paragon doors
  58.  
  59. assign  doors:     trion:doors
  60.  
  61. ;;; For future Trion libs, or if you keep file transfer libs handy
  62.  
  63. if exists trion:libs
  64.    assign  add LIBS:   trion:libs
  65. endif
  66.  
  67. path    trion:utils  trion:scripts  add
  68.  
  69. ;;; Define some commands to 'exit' remote shells (like on some PC boards)
  70.  
  71. alias endshell endcli
  72. alias exit     endcli                ;Used on PC boards in remote shells
  73.  
  74.  
  75. CheckStart
  76. if WARN
  77.    echo "Trion BBS startup script aborted.."
  78.    quit            ;Stop script if CheckStart returns return code 5
  79. endif
  80.  
  81.  
  82. stack 10000          ;was 5000 - 20000   (Xpr libs ??)
  83.  
  84. ;;; MMU-less debug util
  85.  
  86. ;run trion:utils/nullcheck
  87.  
  88.  
  89.  
  90. ;;;  Make sure important directories exist
  91.  
  92. if not exists trion:data
  93.    makedir trion:data
  94. endif
  95. if not exists trion:filecat
  96.    makedir trion:filecat
  97. endif
  98. if not exists trion:icons
  99.    makedir trion:icons
  100. endif
  101. if not exists trion:log
  102.    makedir trion:log
  103. endif
  104. if not exists trion:killedfiles
  105.    makedir trion:killedfiles
  106. endif
  107. if not exists trion:Upload
  108.    makedir trion:Upload
  109. endif
  110. if not exists trion:Files
  111.    makedir trion:Files
  112. endif
  113. if not exists trion:Users
  114.    makedir trion:Users
  115. endif
  116.  
  117. if not exists trion:mail
  118.    makedir trion:mail
  119. endif
  120. if not exists trion:mail/fido
  121.    makedir trion:mail/fido
  122. endif
  123.  
  124. if not exists trion:inbound
  125.    makedir trion:inbound
  126. endif
  127. if not exists trion:outbound
  128.    makedir trion:outbound
  129. endif
  130. if not exists trion:inbound/bad
  131.    makedir trion:inbound/bad
  132. endif
  133. if not exists trion:inbound/backup
  134.    makedir trion:inbound/backup
  135. endif
  136. if not exists trion:inbound/decode
  137.    makedir trion:inbound/decode
  138. endif
  139. if not exists trion:outbound/attaches
  140.    makedir trion:outbound/attaches
  141. endif
  142.  
  143.  
  144.  
  145.  
  146.  
  147. ;;; Start up the Trion Resource Manager   ( add -i to iconize add startup)
  148.  
  149.  
  150. changetaskpri 1                   ;priority was 2
  151. cd trion:
  152. run   trion:utils/trionRM  -m  trion:cfg/trionrm.cfg
  153. wait 1
  154. changetaskpri 0
  155.  
  156.  
  157.  
  158. ;;; Start up GPFax if needed
  159.  
  160. ; cd gpfax:
  161. ; run gpfax <nil: >nil: -b19200 -np -q -l -f5     ;19200/38400/57600
  162. ; waitforport rexx_gpfax
  163. ; rx "address rexx_gpfax closeserial"
  164.  
  165. wait 1 secs
  166.  
  167.  
  168.  
  169. ;;; Startup BBS node(s)
  170.  
  171. changetaskpri 1
  172. cd trion:
  173. run   trion:utils/bbs  -0 -i -d
  174. wait 1
  175.  
  176. run   trion:utils/bbs  -1 -i -d           ;Iconized, debug
  177. ; run   trion:utils/bbs  -2 -i -d -v        ;Iconized, debug, silenced
  178. ; run   trion:utils/bbs  -3 -i -d
  179. ; run   trion:utils/bbs  -4 -i -d
  180. ; run   trion:utils/bbs  -5 -i -d
  181. ; run   trion:utils/bbs  -6 -i -d
  182. ; run   trion:utils/bbs  -7 -i -d
  183. changetaskpri 0
  184.  
  185.  
  186.  
  187. ;;; Install 'Rigth-Amiga FKeys' to Popup/ScreenToFront Nodes 0 & 1.
  188.  
  189. run TrionHotkeys "HOTKEY0=rawkey rcommand f1" "HOTKEY1=rawkey rcommand f2"
  190.  
  191. ;;; The clickit tools (obsolete by GuiMod)
  192.  
  193. ; run trion:utils/clickit2
  194. ; run trion:utils/clickit
  195.  
  196. ;;; Run TrionScheduler OR a Cron utility
  197.  
  198. ;;; Start TrionScheduler with Trion:cfg/scheduler.cfg
  199.  
  200. run scheduler
  201.  
  202. ;;; Startup a cron utility (FI CyberCron) to undertake certain actions
  203. ;;; at certain times , like call-out , maintenance scripts.
  204.  
  205. ; run CyberCron >nil: CRONTAB  trion:cfg/CronTab  LOGFILE  trion:log/Cron.log
  206.  
  207.  
  208.  
  209.