Skip to content

Commit

Permalink
Convert runlevel entry into integer before comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Moravec committed Dec 3, 2013
1 parent 3d37603 commit f3302e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/inst_autosetup.rb
Expand Up @@ -329,8 +329,8 @@ def main
Progress.NextStage

if Profile.current['runlevel'] && Profile.current['runlevel']['default']
default_runlevel = Profile.current['runlevel']['default']
@default_target = default_runlevel == '5' ? Target::GRAPHICAL : Target::MULTIUSER
default_runlevel = Profile.current['runlevel']['default'].to_i
@default_target = default_runlevel == 5 ? Target::GRAPHICAL : Target::MULTIUSER
Builtins.y2milestone "Accepting runlevel '#{default_runlevel}' as default target '#{@default_target}'"
else
@default_target = Profile.current['default_target']
Expand Down

0 comments on commit f3302e2

Please sign in to comment.