diff options
author | Denys Vlasenko | 2009-11-06 04:04:19 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-06 04:04:19 +0100 |
commit | 6cf7f01256c39677a0a5561ebca60e8def9d6d7e (patch) | |
tree | 9751616a6653806d6703da369616d74e38f8b785 /examples/var_service/fw/conf | |
parent | 85bb843f47342b19c4f0814331c1f4c78b0011ad (diff) | |
download | busybox-6cf7f01256c39677a0a5561ebca60e8def9d6d7e.zip busybox-6cf7f01256c39677a0a5561ebca60e8def9d6d7e.tar.gz |
adding example runit-style service directory
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/var_service/fw/conf')
-rw-r--r-- | examples/var_service/fw/conf/11.22.33.44.ipconf-- | 10 | ||||
-rw-r--r-- | examples/var_service/fw/conf/192.168.0.1.ipconf | 11 | ||||
-rw-r--r-- | examples/var_service/fw/conf/lo.ipconf | 10 |
3 files changed, 31 insertions, 0 deletions
diff --git a/examples/var_service/fw/conf/11.22.33.44.ipconf-- b/examples/var_service/fw/conf/11.22.33.44.ipconf-- new file mode 100644 index 0000000..9b44e90 --- /dev/null +++ b/examples/var_service/fw/conf/11.22.33.44.ipconf-- @@ -0,0 +1,10 @@ +#!/bin/sh +# If we have simple static address... +# +let cfg=cfg+1 +if[$cfg]=if +ip[$cfg]=11.22.33.44 +ipmask[$cfg]=11.22.33.44/24 +gw[$cfg]=11.22.33.1 +net[$cfg]=0/0 +dns[$cfg]='11.22.33.2 11.22.33.3' diff --git a/examples/var_service/fw/conf/192.168.0.1.ipconf b/examples/var_service/fw/conf/192.168.0.1.ipconf new file mode 100644 index 0000000..5cf55db --- /dev/null +++ b/examples/var_service/fw/conf/192.168.0.1.ipconf @@ -0,0 +1,11 @@ +#!/bin/sh +# A small network with no routers +# (maybe *we* are their router) +# +let cfg=cfg+1 +if[$cfg]=if +ip[$cfg]=192.168.0.1 +ipmask[$cfg]=192.168.0.1/24 +### gw[$cfg]= +### net[$cfg]=0/0 +### dns[$cfg]='' diff --git a/examples/var_service/fw/conf/lo.ipconf b/examples/var_service/fw/conf/lo.ipconf new file mode 100644 index 0000000..e6be5f0 --- /dev/null +++ b/examples/var_service/fw/conf/lo.ipconf @@ -0,0 +1,10 @@ +#!/bin/bash +# Mostly redundant except when you need dns[]=your_static_dns_srv +# +let cfg=cfg+1 +if[$cfg]=lo +ip[$cfg]=127.0.0.1 +ipmask[$cfg]=127.0.0.1/8 +gw[$cfg]='' +net[$cfg]='' +#dns[$cfg]=127.0.0.1 |