In light of future devices in need of special images for initial flashing which are, in contrast to factory images, only flashable from the bootloader, we add a new category for images which don't fit into factory nor sysupgrade. Devices in need for those images contain the AVM Fritz!Box 4040 and various TP-Link Mediatek models. Example for the Fritz!Box 4040: > other -squashfs-eva.bin bootloader.bin results in the eva image landing in the "other" folder suffixed with "bootlaoder.bin".
79 lines
728 B
Bash
79 lines
728 B
Bash
config() {
|
|
:
|
|
}
|
|
|
|
try_config() {
|
|
:
|
|
}
|
|
|
|
device() {
|
|
:
|
|
}
|
|
|
|
factory_image() {
|
|
:
|
|
}
|
|
|
|
sysupgrade_image() {
|
|
:
|
|
}
|
|
|
|
alias() {
|
|
:
|
|
}
|
|
|
|
manifest_alias() {
|
|
:
|
|
}
|
|
|
|
packages() {
|
|
:
|
|
}
|
|
|
|
factory() {
|
|
:
|
|
}
|
|
|
|
sysupgrade() {
|
|
:
|
|
}
|
|
|
|
other() {
|
|
:
|
|
}
|
|
|
|
no_opkg() {
|
|
:
|
|
}
|
|
|
|
|
|
unknown_devices="$DEVICES"
|
|
|
|
want_device() {
|
|
[ "$DEVICES" ] || return 0
|
|
|
|
local new_devices=''
|
|
|
|
for device in $unknown_devices; do
|
|
if [ "$device" != "$1" ]; then
|
|
new_devices="${new_devices:+${new_devices} }$device"
|
|
fi
|
|
done
|
|
unknown_devices=$new_devices
|
|
|
|
for device in $DEVICES; do
|
|
if [ "$device" = "$1" ]; then
|
|
return 0
|
|
fi
|
|
done
|
|
|
|
return 1
|
|
}
|
|
|
|
check_devices() {
|
|
if [ "$unknown_devices" ]; then
|
|
echo "Error: unknown devices given: ${unknown_devices}" >&2
|
|
exit 1
|
|
fi
|
|
}
|