PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` # 950_check_missing_programs.sh # # Check that all required programs exist in the currently running system. # During "rear mkrescue/mkbackup" the currently running system is the original system # but during "rear recover" the currently running system is the recovery system. # Do this check during the 'init' stage because the 'init' stage is always run # (the 'init' stage is run unconditioned by the usr/sbin/rear main script). # During "rear mkrescue/mkbackup" the 'prep' and 'layout/save' and 'rescue' stages run after the 'init' stage # and there additional required programs are added to the REQUIRED_PROGS array # (e.g. see rescue/GNU/Linux/310_network_devices.sh) # Therefore this check script is additionally run at the end of the 'build' stage # (via the symbolic link build/default/950_check_missing_programs.sh -> init/default/950_check_missing_programs.sh) # cf. https://github.com/rear/rear/issues/892 local prog local missing_progs=() # Check for required binaries: for prog in "${REQUIRED_PROGS[@]}" ; do # When required programs are specified with absolute path like # REQUIRED_PROGS+=( /special/path/myprogam ) # the test "has_binary /special/path/myprogam" works during "rear mkrescue/mkbackup" # but that program appears in the ReaR recovery system as /bin/myprogram # so "has_binary /special/path/myprogam" fails inside the recovery system # which would let "rear recover" falsely error out here # cf. https://github.com/rear/rear/issues/2206 # so we also test "has_binary myprogam" which works inside the recovery system: has_binary "$prog" || has_binary "$( basename "$prog" )" || missing_progs+=( "$prog" ) done # Have all array members as a single word like "${arr[*]}" because it should detect # when there is any non-empty array member (not necessarily the first one): contains_visible_char "${missing_progs[*]}" && Error "Cannot find required programs: ${missing_progs[@]}" # Finish successfully: return 0