Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [[ -e /etc/sysconfig/displaymanager ]] ; then
- if [[ -e /etc/sysconfig/displaymanager.rtd-bak ]]; then
- write_status "****** SUSE auto login is enabled: toggeling off... ********"
- rm /etc/sysconfig/displaymanager && mv /etc/sysconfig/displaymanager.rtd-bak /etc/sysconfig/displaymanager
- else
- write_status "****** SUSE auto login is disabled: toggeling on... ********"
- cp /etc/sysconfig/displaymanager /etc/sysconfig/displaymanager.rtd-bak || write_error "Could not backup: /etc/sysconfig/displaymanager! "
- sed -i 's/DISPLAYMANAGER_AUTOLOGIN=""/DISPLAYMANAGER_AUTOLOGIN="tangarora"/' /etc/sysconfig/displaymanager || write_error "Could not write to file: /etc/sysconfig/displaymanager!"
- sed -i 's/DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"/DISPLAYMANAGER_PASSWORD_LESS_LOGIN="yes"/' /etc/sysconfig/displaymanager || write_error "Could not write to file: /etc/sysconfig/displaymanager!"
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement