home *** CD-ROM | disk | FTP | other *** search
- |
- | !Run file for !Linux (Once installed, you can probably cut this file down)
- |
- | (c) 1996 Russell King.
- |
- | The loader supplied with this has been designed to be run at boot. It only
- | requires the Shared C Library to be loaded.
- |
- | My !Boot.!Run file contains:
- |loader -timeout 200 -config adfs::4.$.linux.!linux.config -root adfs::4.$.partitions.linux.root
- |
- Set Linux$Dir <Obey$Dir>
- Set Linux$Temp <Wimp$ScrapDir>
- |
- | Make sure that we have the bits module loaded.
- |
- RMEnsure Bits 1.03 RMLoad System:modules.bits
- RMEnsure Bits 1.03 Error Linux requires module Bits 1.03 or later
- |
- | Check for configuration file
- |
- Ifabsent <Linux$Dir>.!Config Error Configuration file(s) not found. Please configure linux before attempting to run it.
- |
- | Set up the root partition
- |
- If "<Linux$Root>" = "" THEN Set Linux$Root <Linux$Dir>.KernelDisk
- |
- | I do wish that RiscOS would to variable subsitution before passing the command line to
- | the program the way that unix does ;-( Then I wouldn't need this IF here!
- |
- If "%0" = "" Then Set Extras -timeout 100000
- Echo Delete <Linux$Temp>.Runit <10>Run <Linux$Dir>.loader -config <Linux$Dir>.!Config -root <Linux$Root> <Extras> <10> { > <Linux$Temp>.Runit }
- Unset Extras
- Obey -c <Linux$Temp>.Runit
-