From 79de7f4dcba4323cc2a5620b61765684750d1ac4 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 11 Apr 2005 18:24:09 +0000 Subject: [PATCH] Added a static Netscript that is launched from the Bootscript. Everything commented out currently, more like a temporary tutorial on how to setup everything. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12291 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- data/system/boot/Bootscript | 8 +++++++- data/system/boot/Netscript | 9 +++++++++ data/system/boot/SetupEnvironment | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 data/system/boot/Netscript diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript index 02fa4dedcc..a3d8becb5d 100644 --- a/data/system/boot/Bootscript +++ b/data/system/boot/Bootscript @@ -62,12 +62,18 @@ launchscript $SCRIPTS/SetupEnvironment # Sets timezone etc. runprog beos/bin/clockconfig +# Init Network +if [ "$SAFEMODE" != "yes" ] +then + launchscript $SCRIPTS/Netscript +fi + # Launch servers # We must wait for the app_server and registrar to be ready launch $SERVERS/fake_app_server picasso #launch $SERVERS/app_server picasso # launch app_server -launch $SERVERS/registrar _roster_thread_ # launch registrar +launch $SERVERS/registrar _roster_thread_ # launch registrar launch $SERVERS/debug_server # launch debug_server if [ "$SAFEMODE" != "yes" ]; then diff --git a/data/system/boot/Netscript b/data/system/boot/Netscript new file mode 100644 index 0000000000..8d708d6a62 --- /dev/null +++ b/data/system/boot/Netscript @@ -0,0 +1,9 @@ +# This loads the net_stack_driver that loads and provides the interface to the networking core. +#ls /dev/net_stack + +# That is a static version of the network interface setup. +# You have to edit it to match your driver/ip/subnet. +#ifconfig rtl81690 192.168.0.10 up netmask 255.255.255.0 + +# This adds the default gateway. Edit it for your needs +#route add default 192.168.0.1 diff --git a/data/system/boot/SetupEnvironment b/data/system/boot/SetupEnvironment index 330e2ec0a2..a8b9588629 100644 --- a/data/system/boot/SetupEnvironment +++ b/data/system/boot/SetupEnvironment @@ -11,7 +11,7 @@ export GROUP=users BUILDHOME=/boot/develop case `uname -m` in -BePC|Intel) +BePC|Intel|unknown) BE_HOST_CPU=x86 BETOOLS="$BUILDHOME/bin" BELIBRARIES="$BUILDHOME/lib/$BE_HOST_CPU"