X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRML_X%2F90-update-alternatives;h=242e619fe560afb55f27b7b371bd82a0464933db;hb=cdd808cce09a6503af46053ff59e2e54dfaaf036;hp=6a5fd561b6d3650db5a11bd730545eef546f8eca;hpb=8dfcd204e18d0a36b0f75cf622c24ad447e9ca1f;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives b/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives index 6a5fd56..242e619 100755 --- a/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives +++ b/etc/grml/fai/config/scripts/GRML_X/90-update-alternatives @@ -2,10 +2,10 @@ set -u set -e -if [ -r "$target"/usr/bin/xterm ] ; then - chroot "$target" update-alternatives --set x-terminal-emulator /usr/bin/xterm +if [ -r $target/usr/bin/xterm ] ; then + $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm fi -if [ -r "$target"/etc/X11/cursors/whiteglass.theme ] ; then - chroot "$target" update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme +if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then + $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme fi