diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-02-26 11:35:30 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-02-26 11:35:30 +0000 |
commit | 8dee555dcf90ab5826eb32e98c9aa095e98c83d5 (patch) | |
tree | cd4236c389ccfa64cd59025b5d6dc404fcecf10b /packages/openslug-init | |
parent | f4f5d383bab5b17fe24e066bc5bedd2b32ae8233 (diff) |
Added gateway definition to OpenSlug sysconfsetup.
BKrev: 42205f02gYn_i7ToSwG6jvWklVXd1g
Diffstat (limited to 'packages/openslug-init')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/sysconfsetup | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/sysconfsetup b/packages/openslug-init/openslug-init-0.10/sysconfsetup index 47f0387192..3165db907d 100644 --- a/packages/openslug-init/openslug-init-0.10/sysconfsetup +++ b/packages/openslug-init/openslug-init-0.10/sysconfsetup @@ -22,9 +22,11 @@ EOF strings /etc/linksysconf | grep ip_addr >> /etc/interfaces strings /etc/linksysconf | grep ^netmask >> /etc/interfaces strings /etc/linksysconf | grep hw_addr >> /etc/interfaces + strings /etc/linksysconf | grep gateway >> /etc/interfaces sed -i -e 's/ip_addr=/ address /' /etc/interfaces sed -i -e 's/netmask=/ netmask /' /etc/interfaces sed -i -e 's/hw_addr=/ hwaddress ether /' /etc/interfaces + sed -i -e 's/gateway=/ gateway /' /etc/interfaces mv /etc/network/interfaces /etc/network/interfaces.old cp /etc/interfaces /etc/network/interfaces @@ -33,3 +35,18 @@ EOF fi # Module loading handled more properly by update-modules and modprobe.conf + +exit 0 + +# Future stuff .... + +# Use the bootproto key to set "static" or "dhcp", then do other stuff based on that. + strings /etc/linksysconf | grep bootproto >> /etc/interfaces + strings /etc/linksysconf | grep disk_server_name >> /etc/interfaces + strings /etc/linksysconf | grep hw_addr >> /etc/interfaces + strings /etc/linksysconf | grep dns_server1 >> /etc/interfaces + sed -i -e 's/bootproto=//' /etc/interfaces + sed -i -e 's/disk_server_name=/ hostname /' /etc/interfaces + sed -i -e 's/hw_addr=/ hwaddress ether /' /etc/interfaces + sed -i -e 's/dns_server1=/ /' /etc/interfaces + |