Skip to content
Snippets Groups Projects
Select Git revision
  • 2b19266a7dce39d29f9916777349155113b51e51
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-07-28
  • experimental-2025-07-28-base
  • experimental-2025-07-26
  • experimental-2025-07-26-base
  • experimental-2025-07-24
  • experimental-2025-07-24-base
  • experimental-2025-07-22
  • experimental-2025-07-22-base
  • experimental-2025-07-21
  • experimental-2025-07-21-base
  • experimental-2025-07-20
  • experimental-2025-07-20-base
  • experimental-2025-07-19
  • experimental-2025-07-19-base
  • experimental-2025-07-17
  • experimental-2025-07-17-base
  • experimental-2025-07-12
  • experimental-2025-07-12-base
  • experimental-2025-07-04
  • experimental-2025-07-04-base
41 results

common.inc.sh

Blame
  • common.inc.sh 734 B
    config() {
    	:
    }
    
    try_config() {
    	:
    }
    
    device() {
    	:
    }
    
    factory_image() {
    	:
    }
    
    sysupgrade_image() {
    	:
    }
    
    alias() {
    	:
    }
    
    manifest_alias() {
    	:
    }
    
    packages() {
    	:
    }
    
    factory() {
    	:
    }
    
    sysupgrade() {
    	:
    }
    
    extra_image() {
    	:
    }
    
    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
    }