summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 00:15:16 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 00:15:16 (EDT)
commit5df96fd652974d1dd3264955ad3981a9882cc0c7 (patch)
tree906135dcefca36a18b78568b740ab576c998e003 /busybox.pkg/postinst
parentb40911184ddf0c5d82c8de2fbd9998b0f41fc3e9 (diff)
busybox.pkg/postinst: Fix network interface names.
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-xbusybox.pkg/postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index 844b0a5..f5a66aa 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -24,7 +24,7 @@ if [ "x${1}" = 'xconfigure' ]; then
exec 3>/etc/network/interfaces
printf 'auto lo\niface lo inet loopback\n\n' >&3
for iface in /sys/class/net/eth*; do
- iface="${iface#*/}"
+ iface="${iface##*/}"
printf 'auto %s\niface %s inet dhcp\n\n' \
"${iface}" "${iface}" >&3
done