• Alessandro Rubini's avatar
    apply-dot-config: fix wrong sh syntax (unexposed bug) · 049e8b55
    Alessandro Rubini authored
    In sh, string comparison for equality is "=", not "==". Bash accepts
    either operator but suggests to use "=" for posix conformance.
    Our /bin/sh is currently busybox, which accepts "==" like bash, but
    if you use ash or dash it fails:
    
       $ CONFIG_FOO=y
       $ if [ "$CONFIG_FOO" = "y" ]; then echo ok; fi
       ok
       $ if [ "$CONFIG_FOO" == "y" ]; then echo ok; fi
       dash: 3: [: y: unexpected operator
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    049e8b55
Name
Last commit
Last update
..
apply_dot-config Loading commit data...
assembly_ppsi_conf.sh Loading commit data...
change_dot-config Loading commit data...
custom_boot_script.sh Loading commit data...
dhcp_extra_opt.sh Loading commit data...
dhcp_get_filename.sh Loading commit data...
log_rotate.sh Loading commit data...
shw_ver Loading commit data...
wrs_menuconfig Loading commit data...
wrs_nconfig Loading commit data...
wrsw_pstats Loading commit data...
wrsw_version Loading commit data...
wrsw_vlans Loading commit data...