Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
579c941e
Commit
579c941e
authored
Apr 20, 2019
by
Igor Pecovnik
Browse files
Desktop package was not installed when changing beta/stable repository. Fixed
parent
6ea36677
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
579c941e
...
@@ -327,10 +327,12 @@ function reload_bsp(){
...
@@ -327,10 +327,12 @@ function reload_bsp(){
# if new packages are absent, reinstall old ones
# if new packages are absent, reinstall old ones
if
[[
-z
$PACKAGE_LIST
]]
;
then
if
[[
-z
$PACKAGE_LIST
]]
;
then
PACKAGE_LIST
=
"linux-
${
DISTROID
}
-root
$TARGET_BRANCH
-
$BOARD
"
PACKAGE_LIST
=
"linux-
${
DISTROID
}
-root
$TARGET_BRANCH
-
$BOARD
"
[[
-n
$(
apt-cache search
--names-only
"^armbian-
${
DISTROID
}
-desktop$"
)
]]
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" armbian-
${
DISTROID
}
-desktop"
fi
fi
# reinstall headers only if they are already installed
# reinstall headers only if they are already installed
check_if_installed linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
"
check_if_installed linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
"
IFS
=
" "
IFS
=
" "
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-image
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
"
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-image
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
"
...
@@ -347,11 +349,13 @@ function reload_bsp(){
...
@@ -347,11 +349,13 @@ function reload_bsp(){
aptitude remove ~narmbian-
${
LINUXFAMILY
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
LINUXFAMILY
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
BOARD
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
BOARD
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
DISTROID
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
DISTROID
}
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
DISTROID
}
-desktop
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
DISTROID
}
-desktop-xfce
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
aptitude remove ~narmbian-
${
DISTROID
}
-desktop-xfce
--quiet
=
100
-y
>>
/var/log/upgrade.log 2>&1
# install packages
# install packages
echo
$PACKAGE_LIST
>>
/var/log/upgrade.log
echo
$PACKAGE_LIST
>>
/var/log/upgrade.log
debconf-apt-progress
--
apt-get
--reinstall
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
\
debconf-apt-progress
--
apt-get
--reinstall
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
\
-y
-qq
--no-install-recommends
install
$PACKAGE_LIST
armbian-config
-y
-qq
--no-install-recommends
install
$PACKAGE_LIST
armbian-config
if
[[
$?
=
1
]]
;
then
echo
"Something went wrong ... check logs."
;
exit
;
fi
dialog
--title
"Switching to
$1
"
--backtitle
"
$BACKTITLE
"
--yes-label
"Reboot"
\
dialog
--title
"Switching to
$1
"
--backtitle
"
$BACKTITLE
"
--yes-label
"Reboot"
\
--no-label
"Cancel"
--yesno
"
\n
Reboot to apply new settings?"
7 34
--no-label
"Cancel"
--yesno
"
\n
Reboot to apply new settings?"
7 34
if
[[
$?
=
0
]]
;
then
reboot
;
fi
if
[[
$?
=
0
]]
;
then
reboot
;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment