Changeset 10628 in hybrid for branches/releng-9.0/nanobsd/files/tools/wl-config
- Timestamp:
- May 1, 2012, 11:05:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/tools/wl-config
r10571 r10628 34 34 FILES="authorized_keys dhcpd.conf dnsmasq.conf motd rc.conf.local resolv.conf wleiden.yaml" 35 35 file_details() { 36 POST_CMD="" 37 FILE_HINT="" 38 36 39 case "$1" in 37 40 'authorized_keys') 38 41 STARTUP_LOC="/cfg/ssh/${FILE}" 39 42 RUNNING_LOC="/etc/ssh/${FILE}" 40 FILE_HINT=""41 43 ;; 42 44 'dhcpd.conf') … … 53 55 STARTUP_LOC="/cfg/${FILE}" 54 56 RUNNING_LOC="/etc/${FILE}" 55 FILE_HINT=""57 POST_CMD="/etc/rc.d/motd onestart" 56 58 ;; 57 59 'named.conf') … … 68 70 STARTUP_LOC="/cfg/${FILE}" 69 71 RUNNING_LOC="/etc/${FILE}" 70 FILE_HINT=""71 72 ;; 72 73 'wleiden.yaml') 73 74 STARTUP_LOC="/cfg/local/${FILE}" 74 75 RUNNING_LOC="/etc/local/${FILE}" 75 FILE_HINT=""76 76 ;; 77 77 esac … … 163 163 fetch -q -o ${TMPDIR}/node_list.txt ${BASEURL} || exit 1 164 164 165 # Provide Nodelist and feedback166 cat ${TMPDIR}/node_list.txt | column167 echo ' THIS script adds the config from GENESIS to this operating system'168 echo ' make sure you know what you are doing, if not press control-C'169 echo ' ENTER CONFIG NAME ......(and press enter)'170 171 165 if [ ${OPT_BATCH} -eq 1 ]; then 172 166 config_validator "${CONFIG}" … … 176 170 fi 177 171 else 172 # Provide Nodelist and feedback 173 cat ${TMPDIR}/node_list.txt | column 174 echo ' THIS script adds the config from GENESIS to this operating system' 175 echo ' make sure you know what you are doing, if not press control-C' 176 echo ' ENTER CONFIG NAME ......(and press enter)' 177 178 178 # Have the user to select the right node 179 179 INVALID_CONFIG=1 … … 203 203 SOURCE=$1 204 204 TARGET=$2 205 diff -I '^ # Generated at ' ${TARGET} ${SOURCE} 2>/dev/null205 diff -I '^FreeBSD ' -I '^# Generated at ' ${TARGET} ${SOURCE} 2>/dev/null 206 206 if [ $? -ne 0 ]; then 207 207 mkdir -p `dirname ${TARGET}` || exit 1 … … 256 256 if [ $? -eq 0 ]; then 257 257 echo "# INFO: '${FILE}' changed" 258 if [ -n "${POST_CMD}" ]; then 259 echo "## Running post_cmd: $POST_CMD" 260 $POST_CMD 261 fi 258 262 if [ -n "${FILE_HINT}" ]; then 259 263 echo "# INFO: For instant activate: ${FILE_HINT}"
Note:
See TracChangeset
for help on using the changeset viewer.