diff --git a/scripts/init.sh b/scripts/init.sh index 22fcc03..7151ad4 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -18,7 +18,7 @@ invoke-rc.d rsyslog restart cp /etc/hosts /etc/hosts.irixboot echo "Installing packages..." -apt-get -qq -y install tftpd-hpa isc-dhcp-server rsh-server dnsmasq mksh parted xfsprogs rsync tcpdump +apt-get update && apt-get -qq -y install tftpd-hpa isc-dhcp-server rsh-server dnsmasq mksh parted xfsprogs rsync tcpdump ### disable upstream nameserver (now that we don't need it anymore) sed -i 's/^nameserver/#nameserver/' /etc/resolv.conf @@ -53,4 +53,4 @@ sed -i 's/^TFTP_DIRECTORY.*$/TFTP_DIRECTORY="\/irix"/' /etc/default/tftpd-hpa sed -i 's/^TFTP_OPTIONS.*$/TFTP_OPTIONS=\"--secure -vvvv\"/' /etc/default/tftpd-hpa echo "Creating 'guest' user..." -if ! id -u guest >/dev/null 2>&1; then useradd -s /bin/ksh -d /irix guest; fi \ No newline at end of file +if ! id -u guest >/dev/null 2>&1; then useradd -s /bin/ksh -d /irix guest; fi