diff --git a/configuration.sh b/configuration.sh index 743d6d5d7..718d04728 100644 --- a/configuration.sh +++ b/configuration.sh @@ -96,7 +96,8 @@ PACKAGE_LIST="automake bash-completion bc bridge-utils build-essential cmake cpu # Non-essential packages PACKAGE_LIST_ADDITIONAL="alsa-utils btrfs-tools hddtemp iotop iozone3 stress sysbench screen ntfs-3g vim pciutils evtest htop pv lsof \ - apt-transport-https libfuse2 libdigest-sha-perl libproc-processtable-perl w-scan aptitude dnsutils f3 haveged hdparm rfkill vlan" + apt-transport-https libfuse2 libdigest-sha-perl libproc-processtable-perl w-scan aptitude dnsutils f3 haveged hdparm rfkill \ + vlan sysstat" PACKAGE_LIST_DESKTOP="xserver-xorg xserver-xorg-core xfonts-base xinit nodm x11-xserver-utils xfce4 lxtask xterm mirage radiotray wicd thunar-volman galculator \ gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf libgtk2.0-bin gcj-jre-headless xfce4-screenshooter libgnome2-perl gksu wifi-radar bluetooth" diff --git a/scripts/armhwinfo b/scripts/armhwinfo index 361faceac..c390caf71 100644 --- a/scripts/armhwinfo +++ b/scripts/armhwinfo @@ -15,24 +15,10 @@ collect_information() { TMPFILE=$(mktemp /tmp/${0##*/}.XXXXXX) trap "rm \"${TMPFILE}\" ; exit 0" 0 1 2 3 15 dmesg >"${TMPFILE}" - CORES=$(grep -c ^processor /proc/cpuinfo) - MEMTOTAL=$(( $(awk -F" " '/^MemTotal/ {print $2}' /sys/class/leds/*green*/trigger) 2>/dev/null - fi + ;; + esac ;; esac diff --git a/scripts/firstrun b/scripts/firstrun index 760cf0daf..fee335310 100644 --- a/scripts/firstrun +++ b/scripts/firstrun @@ -71,10 +71,8 @@ chmod +x /tmp/create_swap.sh collect_information() { # get some info about the board + source /etc/armbian-release DISTRIBUTION=$(lsb_release -cs) - HARDWARE=$(awk '/Hardware/ {print $3}' > /boot/uEnv.txt - fi + # some hardware workarounds + case ${LINUXFAMILY} in + sun7i|sun8i) + adjust_sunxi_settings + ;; + pine64) + if [ -z "$(grep ethaddr /boot/uEnv.txt)" ] && [ -f "/sys/class/net/eth0/address" ]; then + echo "ethaddr=$(cat /sys/class/net/eth0/address)" >> /boot/uEnv.txt + fi + ;; + esac update-rc.d -f firstrun remove >/dev/null 2>&1 - #sed -i 's/allow-hotplug\ eth0/auto eth0/' /etc/network/interfaces.default rm /tmp/firstrun_running } # main