Skip to content

Commit

Permalink
move basic initramfs modules config to untangle-hardware-config
Browse files Browse the repository at this point in the history
git-svn-id: https://ut.svn.beanstalkapp.com/ngfw/work/pkgs@43686 8ebf8b4e-06f3-0310-961f-89f74618be54
  • Loading branch information
Dirk Morris committed Jun 30, 2016
1 parent 6365938 commit 2675602
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 132 deletions.
2 changes: 1 addition & 1 deletion untangle-bootsplash/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Standards-Version: 3.8.0

Package: untangle-bootsplash
Architecture: all
Depends: plymouth-themes, plymouth, v86d | oracle-java7-jdk | oracle-java7-jre
Depends: plymouth-themes, plymouth, v86d, untangle-hardware-config
Conflicts: plymouth-drm
Description: The Untangle bootsplash utilities
The Untangle bootsplash utilities using at boot time.
Expand Down
18 changes: 0 additions & 18 deletions untangle-bootsplash/debian/untangle-bootsplash.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,4 @@
# Set the bootsplash theme
plymouth-set-default-theme untangle

# Set the default initramfs-tool/modules setup
# This may be set differently by a hardware-specific package
if ! grep -qE 'Untangle' /etc/initramfs-tools/modules ; then
cat <<EOF >> /etc/initramfs-tools/modules
# Untangle default bootsplash settings
uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap
EOF
dpkg-trigger --no-await update-initramfs
fi

# #12704: no forcing of FRAMEBUFFER in initramfs configuration; this
# does not seem to affect QEMU either, so for the sake of consistency
# let's disable it everywhere
if [ -f /etc/initramfs-tools/conf.d/splash ] ; then
rm -f /etc/initramfs-tools/conf.d/splash
dpkg-trigger --no-await update-initramfs
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,61 @@ if [ -x "/etc/init.d/untangle-hardware-config" ]; then
update-rc.d untangle-hardware-config defaults 10 >/dev/null # early on
ourInit untangle-hardware-config restart
fi


# #12704: no forcing of FRAMEBUFFER in initramfs configuration; this
# does not seem to affect QEMU either, so for the sake of consistency
# let's disable it everywhere
if [ -f /etc/initramfs-tools/conf.d/splash ] ; then
rm -f /etc/initramfs-tools/conf.d/splash
dpkg-trigger --no-await update-initramfs
fi

if grep -q 'Untangle' /etc/initramfs-tools/modules ; then
# Untangle specific modules already written
exit 0
fi

# Write the modules files based on video card type
# https://wiki.debian.org/plymouth#Configuration
if lspci | grep ' VGA' | grep 'Intel' ; then
echo
echo "Configuring Intel video setup..."
echo
cat <<EOF > /etc/initramfs-tools/modules
# Untangle intel video settings
intel_agp
drm
i915 modeset=1
EOF
elif lspci | grep ' VGA' | grep -i 'nvidia' ; then
echo
echo "Configuring nVidia video setup..."
echo
cat <<EOF > /etc/initramfs-tools/modules
# Untangle nvidia video settings
drm
nouveau modeset=1
EOF
elif lspci | grep ' VGA' | grep 'ATI' ; then
echo
echo "Configuring ATI video setup..."
echo
cat <<EOF > /etc/initramfs-tools/modules
# Untangle ATI video settings
drm
radeon modeset=1
EOF
else
echo
echo "Configuring default video setup..."
echo
cat <<EOF > /etc/initramfs-tools/modules
# Untangle default bootsplash settings
uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap
EOF
fi

# Update initram fs
dpkg-trigger --no-await update-initramfs

exit 0

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 2675602

Please sign in to comment.