set -x

if [ -f /run/rpm-systemd-presets-branding-preset-system ]; then 
  # Enable all services, which were installed before systemd 
  # Don't disable services, since this would disable the 
  # complete network stack. 
  systemctl preset-all --preset-mode=enable-only 
fi 
rm -f /run/rpm-systemd-presets-branding-preset-system 


if [ -f /run/rpm-systemd-presets-branding-preset-user ]; then 
  # Enable all services, which were installed before systemd 
  # Don't disable services, since this would disable the 
  # complete network stack. 
  systemctl preset-all --preset-mode=enable-only --global 
fi 
rm -f /run/rpm-systemd-presets-branding-preset-user