mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-21 21:58:51 +00:00
Small cleanup
This commit is contained in:
parent
634110e787
commit
c3567743a0
8 changed files with 28 additions and 14 deletions
|
@ -9,6 +9,10 @@
|
|||
# This file is a part of the Armbian build script
|
||||
# https://github.com/armbian/build/
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# use configuration files like config-default.conf to set the build configuration
|
||||
# check Armbian documentation for more info
|
||||
|
||||
SRC=$(dirname $(realpath ${BASH_SOURCE}))
|
||||
# fallback for Trusty
|
||||
[[ -z $SRC ]] && SRC=$(pwd)
|
||||
|
|
|
@ -101,17 +101,11 @@ install_common()
|
|||
display_alert "Installing u-boot" "$CHOSEN_UBOOT" "info"
|
||||
chroot $SDCARD /bin/bash -c "DEVICE=/dev/null dpkg -i /tmp/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
|
||||
|
||||
if [[ $INSTALL_HEADERS == "yes" ]]; then
|
||||
if [[ $INSTALL_HEADERS == yes ]]; then
|
||||
display_alert "Installing headers" "${CHOSEN_KERNEL/image/headers}" "info"
|
||||
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
|
||||
fi
|
||||
|
||||
# install firmware
|
||||
#if [[ -f $SDCARD/tmp/debs/${CHOSEN_KERNEL/image/firmware-image}_${REVISION}_${ARCH}.deb ]]; then
|
||||
# display_alert "Installing firmware" "${CHOSEN_KERNEL/image/firmware-image}" "info"
|
||||
# chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/firmware-image}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
|
||||
#fi
|
||||
|
||||
if [[ -f $SDCARD/tmp/debs/armbian-firmware_${REVISION}_${ARCH}.deb ]]; then
|
||||
display_alert "Installing generic firmware" "armbian-firmware" "info"
|
||||
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/armbian-firmware_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
THIS_SCRIPT="header"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
THIS_SCRIPT="tips"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
|
@ -11,7 +14,6 @@ done
|
|||
|
||||
quotes="/etc/update-motd.d/quotes.txt"
|
||||
if [[ -f $quotes ]]; then
|
||||
|
||||
random_line=$(shuf -i 1-$(wc -l < $quotes) -n 1)
|
||||
quote=$(sed -n -e "$random_line"p $quotes)
|
||||
[[ -n $quote ]] && echo -e "\e[93mTip of the day:\e[39m $quote\n"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
THIS_SCRIPT="updates"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
THIS_SCRIPT="armbian-config"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
|
@ -9,4 +12,4 @@ for f in $MOTD_DISABLE; do
|
|||
[[ $f == $THIS_SCRIPT ]] && exit 0
|
||||
done
|
||||
|
||||
echo -e "[\e[31m General system configuration\e[0m: \e[1marmbian-config\e[0m ]"
|
||||
[[ $(( $RANDOM % 2 )) == 0 ]] && echo -e "[\e[31m General system configuration\e[0m: \e[1marmbian-config\e[0m ]\n"
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
if [[ -f /var/run/resize2fs-reboot ]]; then
|
||||
printf "\n\e[0;91mWarning: a reboot is needed to finish resizing the filesystem \x1B[0m \n"
|
||||
printf "\e[0;91mPlease reboot the system as soon as possible \x1B[0m \n\n"
|
||||
(sleep 1 && rm "$0") &
|
||||
printf "\e[0;91mWarning: a reboot is needed to finish resizing the filesystem \x1B[0m \n"
|
||||
printf "\e[0;91mPlease reboot the system as soon as possible \x1B[0m \n"
|
||||
fi
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT EDIT THIS FILE
|
||||
# any changes will be lost on board support package update
|
||||
|
||||
THIS_SCRIPT="point-to-faq"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
|
@ -11,6 +14,6 @@ done
|
|||
|
||||
. /etc/armbian-release
|
||||
|
||||
printf "New to Armbian? Check the documentation first: \e[0;92mhttps://docs.armbian.com\x1B[0m\n\n"
|
||||
printf "New to Armbian? Check the documentation first: \e[0;92mhttps://docs.armbian.com\x1B[0m\n"
|
||||
|
||||
(sleep 1 && rm "$0") &
|
||||
(sleep 1 && rm "$0") &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue