[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#744714: oldsys-preseed: Add support for Buffalo Linkstation LS-CHLv2/LS-XHL



Package: oldsys-preseed
Severity: wishlist
Tags: patch

This patch adds support for the Buffalo Linkstation LS-CHLv2 and the LS-XHL.



-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From 1dfda0ea3fa3de3366682be83d0fd32768485ea6 Mon Sep 17 00:00:00 2001
From: Michael Walle <michael@walle.cc>
Date: Thu, 10 Apr 2014 13:46:57 +0200
Subject: [PATCH] Add support for Buffalo Linkstation LS-CHLv2/LS-XHL

Signed-off-by: Michael Walle <michael@walle.cc>
---
 oldsys-preseed |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/oldsys-preseed b/oldsys-preseed
index 925d4e9..f60196f 100755
--- a/oldsys-preseed
+++ b/oldsys-preseed
@@ -114,6 +114,8 @@ case "`archdetect`" in
 	;;
 	arm*/orion5x | arm*/kirkwood)
 		machine=$(grep "^Hardware" /proc/cpuinfo | sed 's/Hardware\s*:\s*//')
+		# /proc/device-tree may not exist on all architectures
+		dt_model=$(cat /proc/device-tree/model 2>/dev/null)
 		if echo "$machine" | grep -q "^Buffalo/Revogear Kurobox Pro"; then
 			check_file /proc/mtd
 			rootfs=$(get_mtdblock "rootfs")
@@ -293,6 +295,14 @@ case "`archdetect`" in
 			fi
 			umount $path/sda1 || true
 			rmdir $path/sda1 $path || true
+		elif echo "$dt_model" | grep -q "^Buffalo Linkstation LS-XHL" ||
+		   echo "$dt_model" | grep -q "^Buffalo Linkstation LS-CHLv2"; then
+			NET_CONFIG=dhcp
+			IPADDRESS=192.168.1.100
+			NETMASK=255.255.255.0
+			GATEWAY=192.168.1.1
+			NAMESERVERS=192.168.1.1
+			dhcp_fallback $FILE
 		else
 			exit_unknown
 		fi
-- 
1.7.10.4


Reply to: