File: nslu2-flashkernel

package info (click to toggle)
nslu2-utils 0.10%2Br71-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 304 kB
  • ctags: 5
  • sloc: sh: 2,408; perl: 780; makefile: 56
file content (21 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e
echo "nslu2-flashkernel is deprecated, you should use flash-kernel instead." >&2
if [ -e /etc/kernel-img.conf ] && grep -q nslu2-flashkernel /etc/kernel-img.conf
then
	echo "You should update /etc/kernel-img.conf to use flash-kernel." >&2
fi

if [ ! -e /proc/mtd ]; then
	echo "/proc is not mounted" >&2
	exit 1
fi
if ! grep -q '"Loader"$' /proc/mtd ; then
	echo "You need to manually upgrade your NSLU2 to a new flash layout." >&2
	echo "Please see http://www.cyrius.com/debian/nslu2/upgrade.html" >&2
	exit 1
else
	echo "Running flash-kernel ..." >&2
	flash-kernel "$@"
fi