1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Fix PATH env for boot environment

Ticket: CM-2602
Reviewed By: trivial
Testing Done: Tested with pre-up script during boot
This commit is contained in:
roopa
2014-04-14 22:56:51 -07:00
parent 4c3af47081
commit 03d5166bff

View File

@ -11,6 +11,7 @@ import logging
lockfile="/run/network/.lock"
logger = None
ENVPATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
def run_up(args):
logger.debug('args = %s' %str(args))
@ -358,5 +359,6 @@ if __name__ == "__main__":
print 'Another instance of this program is already running.'
exit(0)
"""
# required during boot
os.putenv('PATH', ENVPATH)
main(sys.argv)