Updated sample scripts (and included a static version)
[tpg/acess2.git] / Usermode / Libraries / libspiderscript.so_src / Scripts / sample.isc
index 7e9a866..d9ec020 100644 (file)
@@ -1,3 +1,4 @@
+#<?php
 
 # Should I use brackets in this language?
 # Well, considering that all whitespace is ignored, it might be an idea
@@ -23,6 +24,7 @@ Sys.IO.Close($fp);
 #  Sys.Mem.MakeStruct( "L*B", $len, $len, $str );
 # Hmm.. that would mean I will need arrays... fuck it, do them later
 
+/*
 function SetIPv4($ifaceName, $addr)
 {
        $fp = Sys.IO.Open( "/Devices/ipstack/$ifaceName" );
@@ -34,3 +36,9 @@ function SetIPv4($ifaceName, $addr)
 }
 
 SetIPv4( $ifname, Lang.Array(10, 0, 2, 55) );
+*/
+
+
+return 42;     // Script return value
+
+#?>

UCC git Repository :: git.ucc.asn.au