File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.4.0 (2016-10-03)
4+
5+ * Change script output colour
6+ * Manually manage /etc/hosts instead of calling sethostname
7+
38## 1.3.0 (2016-03-24)
49
510 * Add original udhcpc.script from BusyBox
Original file line number Diff line number Diff line change @@ -16,12 +16,17 @@ if [ -f "$config" ]; then
1616 . $config
1717
1818 if [ " $hostname " ]; then
19- /usr/bin/sethostname $hostname
19+ echo -n " ${GREEN} Setting hostname to ${MAGENTA} $hostname ${NORMAL} "
20+ sed -i " /^127.0.0.1/c\127.0.0.1 $hostname localhost localhost.local" /etc/hosts
21+ echo " $hostname " > /etc/hostname
22+ hostname " $hostname "
23+ echo " ${GREEN} Done.${NORMAL} "
2024 fi
2125
2226 /sbin/ifconfig $interface up
23- echo " ${GREEN} Waiting for interface ${YELLOW } $interface ${GREEN} to be up...${NORMAL} "
27+ echo -n " ${GREEN} Waiting for interface ${MAGENTA } $interface ${GREEN} to be up...${NORMAL} "
2428 sleep 5
29+ echo " ${GREEN} Done.${NORMAL} "
2530
2631 case " $mode " in
2732 static)
@@ -32,7 +37,7 @@ if [ -f "$config" ]; then
3237 ;;
3338 esac
3439else
35- echo " ${RED} Missing network config: ${YELLOW }${config}${NORMAL} "
40+ echo " ${RED} Missing network config: ${RED }${config}${NORMAL} "
3641 exit 1
3742fi
3843
You can’t perform that action at this time.
0 commit comments