learning armbian steps(8) ----- armbian 源码分析(三)
在lib/main.sh当中 13 if [[ $(basename $ 0 ) == main.sh ]]; then 14 echo " Please use compile.sh to start the build process " 15 exit - 1 16 fi 17 18 # default umask for root is 022 so parent directories won ' t be group writeable without this 19 # this is used instead of making the chmod in prepare_host() recursive 20 umask 002 21 22 # destination 23 DEST=$SRC/ output 24 25 TTY_X=$(($(stty size | awk ' {print $2} ' )- 6 )) # determine terminal width 26 TTY_Y=$(($(stty size | awk ' {print $1} ' )- 6 )) # determine terminal height 27 13-16行,由于 main.sh脚本的执行需要在compile.sh内 被调用,不可以直接通过lib/main.sh