Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #shell
- function os.version()
- return "CraftOS 1.3"
- end
- shell.setAlias( "ls", "list" )
- shell.setAlias( "dir", "list" )
- shell.setAlias( "cp", "copy" )
- shell.setAlias( "mv", "move" )
- shell.setAlias( "rm", "delete" )
- shell.setAlias( "pb", "rom/programs/http/pastebin" )
- shell.setAlias( "pastebin", "rom/programs/http/pastebin" )
- oldfsread = fs.isReadOnly
- oldfsopen = fs.open
- oldioopen = io.open
- oldfsdelete = fs.delete
- oldfsmove = fs.move
- function newfsread( path )
- if path == "disk/bios.lua" or path == "/disk/bios.lua" or path == "disk/shell" or path == "/disk/shell" then
- return true
- else
- return oldfsread( path )
- end
- end
- function newfsopen( path, type )
- if path then
- if path == "disk/bios.lua" or path == "/disk/bios.lua" or path == "disk/shell" or path == "/disk/shell" then
- return false
- end
- end
- return oldfsopen( path, type )
- end
- function newioopen( path, type )
- if path then
- if path == "disk/bios.lua" or path == "/disk/bios.lua" or path == "disk/shell" or path == "/disk/shell" then
- return false
- end
- end
- return oldioopen( path, type )
- end
- function fsdelete( path )
- if path then
- if path == "disk/bios.lua" or path == "/disk/bios.lua" or path == "disk/shell" or path == "/disk/shell" then
- return false
- end
- end
- return oldfsdelete( path )
- end
- function fsmove( path , hai )
- if path then
- if path == "disk/bios.lua" or path == "/disk/bios.lua" or path == "disk/shell" or path == "/disk/shell" then
- return false
- end
- end
- return oldfsmove( path , hai )
- end
- fs.move = fsmove
- fs.delete = fsdelete
- fs.open = newfsopen
- io.open = newioopen
- fs.isReadOnly = newfsread
Advertisement
Add Comment
Please, Sign In to add comment