git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated sample scripts (and included a static version)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libspiderscript.so_src
/
Scripts
/
sample.isc
diff --git
a/Usermode/Libraries/libspiderscript.so_src/Scripts/sample.isc
b/Usermode/Libraries/libspiderscript.so_src/Scripts/sample.isc
index
7e9a866
..
d9ec020
100644
(file)
--- a/
Usermode/Libraries/libspiderscript.so_src/Scripts/sample.isc
+++ b/
Usermode/Libraries/libspiderscript.so_src/Scripts/sample.isc
@@
-1,3
+1,4
@@
+#<?php
# Should I use brackets in this language?
# Well, considering that all whitespace is ignored, it might be an idea
# 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
# 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" );
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) );
}
SetIPv4( $ifname, Lang.Array(10, 0, 2, 55) );
+*/
+
+
+return 42; // Script return value
+
+#?>
UCC
git Repository :: git.ucc.asn.au