mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 05:18:55 +00:00
Fix lightdm activation and change its defaults
Move lightdm settings to the board support package
This commit is contained in:
parent
ed6d0d2d65
commit
b88dc7cbac
7 changed files with 11 additions and 12 deletions
|
@ -131,7 +131,7 @@ case $DISPLAY_MANAGER in
|
|||
;;
|
||||
|
||||
lightdm)
|
||||
PACKAGE_LIST_DESKTOP="$PACKAGE_LIST_DESKTOP lightdm-gtk-greeter lightdm"
|
||||
PACKAGE_LIST_DESKTOP="$PACKAGE_LIST_DESKTOP lightdm lightdm-gtk-greeter"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
|
@ -55,7 +55,6 @@ install_desktop ()
|
|||
|
||||
# install logo for login screen
|
||||
cp $SRC/packages/blobs/desktop/icons/armbian.png $SDCARD/usr/share/pixmaps
|
||||
cp -R $SRC/packages/blobs/desktop/lightdm $SDCARD/etc
|
||||
|
||||
# Compile Turbo Frame buffer for sunxi
|
||||
if [[ $LINUXFAMILY == sun* && $BRANCH == default ]]; then
|
||||
|
|
|
@ -35,8 +35,8 @@ create_board_package()
|
|||
Depends: bash, linux-base, u-boot-tools, initramfs-tools
|
||||
Provides: armbian-bsp
|
||||
Conflicts: armbian-bsp
|
||||
Replaces: base-files, mpv, armbian-tools-$RELEASE
|
||||
Recommends: bsdutils, parted, python3-apt, util-linux, toilet, wireless-tools
|
||||
Replaces: base-files, mpv, lightdm-gtk-greeter, armbian-tools-$RELEASE
|
||||
Recommends: bsdutils, parted, python3-apt, util-linux, toilet
|
||||
Description: Armbian tweaks for $RELEASE on $BOARD ($BRANCH branch)
|
||||
EOF
|
||||
|
||||
|
@ -52,7 +52,7 @@ create_board_package()
|
|||
mv /etc/network/interfaces.tmp /etc/network/interfaces
|
||||
fi
|
||||
# make a backup since we are unconditionally overwriting this on update
|
||||
cp /etc/default/cpufrequtils /etc/default/cpufrequtils.dpkg-old
|
||||
[ -f "/etc/default/cpufrequtils" ] && cp /etc/default/cpufrequtils /etc/default/cpufrequtils.dpkg-old
|
||||
dpkg-divert --package linux-${RELEASE}-root-${DEB_BRANCH}${BOARD} --add --rename \
|
||||
--divert /etc/mpv/mpv-dist.conf /etc/mpv/mpv.conf
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[SeatDefaults]
|
||||
user-session=ubuntu
|
||||
greeter-show-manual-login=true
|
||||
greeter-hide-users=true
|
||||
allow-guest=false
|
|
@ -3,4 +3,4 @@ user-background=false
|
|||
theme-name=Numix
|
||||
icon-theme-name=Vibrancy-Colors-Full-Dark
|
||||
default-user-image=/usr/share/pixmaps/armbian.png
|
||||
indicators=~power;~language
|
||||
indicators=~language;~power
|
|
@ -0,0 +1,5 @@
|
|||
[SeatDefaults]
|
||||
user-session=ubuntu
|
||||
greeter-show-manual-login=false
|
||||
greeter-hide-users=false
|
||||
allow-guest=false
|
|
@ -109,7 +109,7 @@ if [ -f /root/.not_logged_in_yet ] && [ -n "$BASH_VERSION" ] && [ "$-" != "${-#*
|
|||
service nodm start
|
||||
fi
|
||||
elif [ -d "/etc/lightdm" ] && [ -n "$RealName" ] ; then
|
||||
systemctl enable lightdm.service 2>/dev/null
|
||||
ln -sf /lib/systemd/system/lightdm.service /etc/systemd/system/display-manager.service
|
||||
if [[ -f /var/run/resize2fs-reboot ]]; then
|
||||
# Let the user reboot now otherwise start desktop environment
|
||||
printf "\n\n\e[0;91mWarning: a reboot is needed to finish resizing the filesystem \x1B[0m \n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue