diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-02-26 15:03:06 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2005-02-26 15:03:06 +0000 |
commit | b96d5dabff1173d84b2ed0563a4c8a26a0175efe (patch) | |
tree | 45cec08e2fc5d092de106e452c0623e4e081a3f3 | |
parent | 7c65ec8729b8f74dade28b2422cb03b73e5ae2eb (diff) |
Changed the name of the original network settings file in OpenSlug
BKrev: 42208faahaOnMmzqEVOTPndGl3oiwg
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/sysconfsetup | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/sysconfsetup b/packages/openslug-init/openslug-init-0.10/sysconfsetup index 5c9723bb03..d52f6e12ed 100644 --- a/packages/openslug-init/openslug-init-0.10/sysconfsetup +++ b/packages/openslug-init/openslug-init-0.10/sysconfsetup @@ -8,7 +8,7 @@ then /usr/sbin/update-modules dd if=/dev/mtdblock1 of=/etc/linksysconf - cat <<EOF > /etc/interfaces + cat <<EOF > /etc/original-network-settings # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface @@ -20,20 +20,20 @@ iface eth0 inet static EOF # Use the bootproto key to set "static" or "dhcp", then do other stuff based on that. - # strings /etc/linksysconf | grep bootproto >> /etc/interfaces - # sed -i -e 's/bootproto=//' /etc/interfaces - - strings /etc/linksysconf | grep ip_addr >> /etc/interfaces - strings /etc/linksysconf | grep ^netmask >> /etc/interfaces - strings /etc/linksysconf | grep gateway >> /etc/interfaces - strings /etc/linksysconf | grep hw_addr >> /etc/interfaces - sed -i -e 's/ip_addr=/ address /' /etc/interfaces - sed -i -e 's/netmask=/ netmask /' /etc/interfaces - sed -i -e 's/gateway=/ gateway /' /etc/interfaces - sed -i -e 's/hw_addr=/ hwaddress ether /' /etc/interfaces + # strings /etc/linksysconf | grep bootproto >> /etc/original-network-settings + # sed -i -e 's/bootproto=//' /etc/original-network-settings + + strings /etc/linksysconf | grep ip_addr >> /etc/original-network-settings + strings /etc/linksysconf | grep ^netmask >> /etc/original-network-settings + strings /etc/linksysconf | grep gateway >> /etc/original-network-settings + strings /etc/linksysconf | grep hw_addr >> /etc/original-network-settings + sed -i -e 's/ip_addr=/ address /' /etc/original-network-settings + sed -i -e 's/netmask=/ netmask /' /etc/original-network-settings + sed -i -e 's/gateway=/ gateway /' /etc/original-network-settings + sed -i -e 's/hw_addr=/ hwaddress ether /' /etc/original-network-settings mv /etc/network/interfaces /etc/network/interfaces.old - cp /etc/interfaces /etc/network/interfaces + cp /etc/original-network-settings /etc/network/interfaces echo "Configured /etc/network/interfaces from /etc/linksysconf" |