From 2893993b5767a8d3980f16b7e4b5bf596eb977a8 Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Thu, 12 Apr 2007 14:10:48 +0000 Subject: package_deb.bbclass: add shebang, closes #2086 --- classes/package_deb.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass index 388f9819bd..0c83e58a37 100644 --- a/classes/package_deb.bbclass +++ b/classes/package_deb.bbclass @@ -209,6 +209,7 @@ python do_package_deb () { scriptfile = file(os.path.join(controldir, script), 'w') except OSError: raise bb.build.FuncFailed("unable to open %s script file for writing." % script) + scriptfile.write("#!/bin/sh\n") scriptfile.write(scriptvar) scriptfile.close() os.chmod(os.path.join(controldir, script), 0755) -- cgit v1.2.3