execfail on .profile fbterm exec
Otherwise, it is not possible to log into a shell (as that user, at least) when exec fails!org
parent
89a3cb55e6
commit
cf3304a0ac
5
profile
5
profile
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Executed on login (that is---a login shell)
|
||||
#
|
||||
# Copyright (C) 2013 Mike Gerwitz
|
||||
# Copyright (C) 2013,2015 Mike Gerwitz
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -22,6 +22,7 @@
|
|||
|
||||
# execute fbterm if logging on from a tty
|
||||
if [ "$TERM" == linux ] && tty | grep -q /dev/tty; then
|
||||
shopt -s execfail
|
||||
which fbterm >/dev/null && exec fbterm
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue