blob: ea1bd0711c9b9f9f98b8e8563d943ebe1c990f65 [file] [log] [blame]
Mykola Kostenok4d17df62017-09-01 09:56:45 +03001#!/bin/sh
2
3echo "----------------
4System entered recovery mode. Running from backup flash!!!
5help for get ip:
6ifconfig eth0 $IP netmask $NETMASK up;
7route add default gw $GATEWAY eth0
8Or type udhcpc to get ip over dhcp.
9Please scp image file to /tmp folder and re-burn main flash with:
10/run/initramfs/recovery /tmp/<bmc-image-file>.
11----------------";
12
13mkdir /run/lock;
14
15mkdir /dev/mtd;
16
17ln -s /run/mtd\:u-boot-env /dev/mtd/u-boot-env;
18
19/usr/bin/mlx-hw-events.sh add reset /sys/devices/platform/ahb/ahb:apb/ahb:apb:i2c@1e78a000/1e78a140.i2c-bus/i2c-4/4-0071/mlxreg-core.1137/hwmon/hwmon*;
20
21mount /dev/mtdblock5 /run/initramfs/rw -t jffs2 -o remount,ro;
22mount tmpfs tmp -t tmpfs -o mode=755,nodev;
23
24export PS1="(recovery)\u@BMC:\w\$"
25
26while true;
27do
28 /run/initramfs/ro/sbin/sulogin;
29done
30