Cosmetics

Update module sets DIRTY flag
This commit is contained in:
Fabio Belavenuto 2022-07-21 11:21:24 -03:00
parent 14750e7531
commit bdf8b07724
16 changed files with 10 additions and 3 deletions

2
TODO
View File

@ -1,6 +1,8 @@
A fazer
- Descobrir como é o serial do DS2422+
- Estudar acrescentar modo simples e avançado do menu
- Mudar synoinfo para ler do modelo e preencher no user_config, para usuário poder deletar entradas do modelo
- Acertar flag DIRTY ao atualizar módulos, etc
Concluidos:
- Generalizar código dos addons

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
function compile-module {
# Validate
if [ -z "${1}" ]; then
@ -19,7 +21,7 @@ function compile-module {
fi
echo "Compiling module for ${PLATFORM}-${KVER}..."
cp -R /input /tmp
make -C "/opt/${PLATFORM}" M="/tmp/input" PLATFORM=${PLATFORM^^} modules
make -C "/opt/${PLATFORM}" M="/tmp/input" ${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m modules
while read F; do
strip -g "${F}"
echo "Copying `basename ${F}`"

View File

@ -784,6 +784,7 @@ function updateMenu() {
mkdir -p "${DEST_PATH}/${ADDON}"
tar xaf "${PKG}" -C "${DEST_PATH}/${ADDON}" >/dev/null 2>&1
done
DIRTY=1
dialog --backtitle "`backtitle`" --title "Update addons" --aspect 18 \
--msgbox "Addons updated with success!" 0 0
;;
@ -809,6 +810,7 @@ function updateMenu() {
--infobox "Extracting last version" 0 0
rm -rf "${LKM_PATH}/"*
unzip /tmp/rp-lkms.zip -d "${LKM_PATH}" >/dev/null 2>&1
DIRTY=1
dialog --backtitle "`backtitle`" --title "Update LKMs" --aspect 18 \
--msgbox "LKMs updated with success!" 0 0
;;
@ -845,6 +847,7 @@ function updateMenu() {
rm "${MODULES_PATH}/${P}.tgz"
mv "/tmp/${P}.tgz" "${MODULES_PATH}/${P}.tgz"
done
DIRTY=1
dialog --backtitle "`backtitle`" --title "Update Modules" --aspect 18 \
--msgbox "Modules updated with success!" 0 0
;;

View File

@ -6,7 +6,7 @@ terminal_input console
terminal_output console
set default="0"
set timeout="3"
set timeout="5"
set timeout_style="menu"
insmod loadenv
@ -60,7 +60,7 @@ if [ -s /zImage -a -s /rd.gz ]; then
initrd /initrd-arpl
echo "Booting..."
}
menuentry 'Boot DSM into junior' --id junior {
menuentry 'Force re-install DSM' --id junior {
echo "Loading kernel..."
linux /bzImage-arpl console=ttyS0,115200n8 quiet force_junior
echo "Loading initramfs..."