diff options
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/kern_header.c | 0 | ||||
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/sysconfsetup | 34 |
2 files changed, 34 insertions, 0 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/kern_header.c b/packages/openslug-init/openslug-init-0.10/kern_header.c new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/openslug-init/openslug-init-0.10/kern_header.c diff --git a/packages/openslug-init/openslug-init-0.10/sysconfsetup b/packages/openslug-init/openslug-init-0.10/sysconfsetup index e69de29bb2..1b5b901708 100644 --- a/packages/openslug-init/openslug-init-0.10/sysconfsetup +++ b/packages/openslug-init/openslug-init-0.10/sysconfsetup @@ -0,0 +1,34 @@ +#!/bin/sh +if [ ! -e /etc/linksysconf ] +then + +# Ok this may be a little hack for now +# but Make sure the kernel module info is updated +# So the driver can actually load the first time + /usr/sbin/update-modules + + dd if=/dev/mtdblock1 of=/etc/linksysconf + cat <<EOF > /etc/interfaces +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +iface eth0 inet static +EOF + + strings /etc/linksysconf | grep ip_addr >> /etc/interfaces + strings /etc/linksysconf | grep ^netmask >> /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/hw_addr=/ hwaddress ether /' /etc/interfaces + + mv /etc/network/interfaces /etc/network/interfaces.old + cp /etc/interfaces /etc/network/interfaces +# mv /etc/interfaces /etc/network/interfaces + echo "Configured /etc/network/interfaces with IP Static linksysconf Information" +fi + +modprobe ixp425_eth |