File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,11 +98,11 @@ ls -lh reswarmos-build/
9898logging_message " copy required configuration file"
9999
100100if [[ -f ${cfgfile} ]]; then
101- if [[ -f ./reswarmos-build/buildroot/.config ]]; then
102- echo " buildroot configuration .config already present: remove it to employ a new one"
103- else
104- cp -v ${cfgfile} ./reswarmos-build/buildroot/.config
105- fi
101+ # if [[ -f ./reswarmos-build/buildroot/.config ]]; then
102+ # echo "buildroot configuration .config already present: remove it to employ a new one"
103+ # else
104+ cp -v ${cfgfile} ./reswarmos-build/buildroot/.config
105+ # fi
106106else
107107 echo " sorry, the required config file '${cfgfile} ' does not exist!" >&2
108108 exit 1
Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ chmod 644 ${TARGET_DIR}/etc/profile.d/motd.sh
4444cp -v ${ASSCNF} /shell-prompt.sh ${TARGET_DIR} /etc/profile.d/shell-prompt.sh
4545chmod 644 ${TARGET_DIR} /etc/profile.d/shell-prompt.sh
4646# evtl. allow root login
47- echo " PermitRootLogin yes" >> ${TARGET_DIR} /etc/ssh/ssh_config
47+ sshdopt=" PermitRootLogin yes"
48+ sshdpath=" ${TARGET_DIR} /etc/ssh/sshd_config"
49+ sshdoptch=$( cat ${sshdpath} | grep -v " ^#" | grep " ${sshdopt} " )
50+ if [ -z " ${sshdoptch} " ]; then
51+ echo " ${sshdopt} " >> ${sshdpath}
52+ fi
4853
4954# copy default device to boot partition
5055cp -v ${DEVCNF} /device-config.ini ${BINARIES_DIR} /device-config.ini
You can’t perform that action at this time.
0 commit comments