mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Remove not needed files for RUTX
This commit is contained in:
parent
85d847a12e
commit
b66beeb1e2
20 changed files with 1 additions and 1275 deletions
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
do_stm32_autoflash() {
|
||||
# launch STM32 flash utility
|
||||
[ -e "/sys/r2ec/reset" -a -f /usr/bin/autoflash ] && {
|
||||
/usr/bin/autoflash
|
||||
}
|
||||
}
|
||||
|
||||
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_stm32_autoflash
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2010 Vertical Communications
|
||||
|
||||
do_check_version() {
|
||||
version="$(uci -q get system.@system[0].device_fw_version)"
|
||||
[ -z "$version" ] && {
|
||||
return 0
|
||||
}
|
||||
|
||||
numeric_version="${version##*_}"
|
||||
client_removed="${numeric_version#*.}"
|
||||
major="${client_removed%%.*}"
|
||||
|
||||
[ -f /sysupgrade.tgz ] && [ -n "$major" ] && [ "$major" -lt 2 ] && {
|
||||
echo "- migration work -"
|
||||
cp /rom/etc/inittab /etc/inittab
|
||||
}
|
||||
}
|
||||
|
||||
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_check_version
|
Loading…
Add table
Add a link
Reference in a new issue