Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
50c3bb26
Commit
50c3bb26
authored
8 years ago
by
zuul
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "contrib: Let safe_asterisk script continue without /dev/tty9."
parents
9d54dd04
56caf540
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/scripts/safe_asterisk
+10
-3
10 additions, 3 deletions
contrib/scripts/safe_asterisk
with
10 additions
and
3 deletions
contrib/scripts/safe_asterisk
+
10
−
3
View file @
50c3bb26
...
@@ -120,13 +120,20 @@ if test -n "$TTY" && test "$TTY" != "no"; then
...
@@ -120,13 +120,20 @@ if test -n "$TTY" && test "$TTY" != "no"; then
TTY
=
tty
${
TTY
}
TTY
=
tty
${
TTY
}
elif
test
-c
/dev/vc/
${
TTY
}
;
then
elif
test
-c
/dev/vc/
${
TTY
}
;
then
TTY
=
vc/
${
TTY
}
TTY
=
vc/
${
TTY
}
elif
test
"
$TTY
"
=
"9"
;
then
# ignore default if it was untouched
# If there is no /dev/tty9 and not /dev/vc/9 we don't
# necessarily want to die at this point. Pretend that
# TTY wasn't set.
TTY
=
else
else
message
"Cannot find specified TTY (
${
TTY
}
)"
message
"Cannot find specified TTY (
${
TTY
}
)"
exit
1
exit
1
fi
fi
ASTARGS
=
"
${
ASTARGS
}
-vvvg"
if
test
-n
"
$TTY
"
;
then
if
test
"
$CONSOLE
"
!=
"no"
;
then
ASTARGS
=
"
${
ASTARGS
}
-vvvg"
ASTARGS
=
"
${
ASTARGS
}
-c"
if
test
"
$CONSOLE
"
!=
"no"
;
then
ASTARGS
=
"
${
ASTARGS
}
-c"
fi
fi
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment