blob: 05fa19a89c649f8b1c82e8cd1e81ece1d86613e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
if [ "$1" = "prereqs" ]; then
exit 0
fi
quiet=n
. /scripts/functions
# if break=download_settings STOP here
maybe_break download_settings
. /conf/tcos.conf
. /conf/tcos-run-functions
MYIP=$(grep 'fixed-address' /var/lib/dhcp/dhclient.leases | head -1| awk '{print $2}' | sed s/";"//g)
download_file /tcos/conf/${MYIP}.conf /conf/mysettings.conf
if [ $? -eq 0 ]; then
log_begin_msg "Download personalized settings ${MYIP}.conf"
log_end_msg 0
else
log_begin_msg "No personalized settings to download"
log_end_msg 0
fi
exit 0
|