BTS

Issue913

Title netscript bootoption: export variable to detect execution
Priority feature Status resolved
Superseder Nosy List mika
Assigned To Topics

Created on 2010-10-14.12:11:35 by mika, last changed 2010-10-16.17:16:28 by mika.

Messages
msg3383 (view) Author: mika Date: 2010-10-16.17:16:27
We believe that your issue has been closed by the upload of
Version 0.9.14 of grml-autoconfig from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 16 Oct 2010 18:57:15 +0200
Source: grml-autoconfig
Binary: grml-autoconfig
Architecture: source all
Version: 0.9.14
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-autoconfig - main bootup process of a Grml (based) system
Changes: 
 grml-autoconfig (0.9.14) unstable; urgency=low
 .
   [ Frank Terbeck ]
   * [67efa58] Fix config_debs() and make sure config_debnet() does not
     globally set options. [Closes: issue892]
 .
   [ Ulrich Dangel ]
   * [9c5f2cc] Fixed typo in manpage.
   * [86a6099] Swap position of pre-2009.05 and post-2009.05.
   * [6e63506] [e200e8e] [e200e8e] Provide variable NETSCRIPT for
     downloaded and executed script. [Closes: issue913]
   * [d019c32] Added test for the config_debs function to test the
     parameter count for the dpkg command.
 .
   [ Christian Hofstaedtler ]
   * [7920da3] Document run-parts restrictions for script= option.
     [Closes: issue906]
 .
   [ Michael Prokop ]
   * [5365fba] doc/grml-autoconfig.1.txt: no longer include
     grml-autoconfig.200905.txt. [Closes: issue891]
   * [3c76bd3] Bump Standards-Version to 3.9.1.
   * [95cf665] Add zsh to Build-Depends-Indep for tests.
   * [82bbb6e] tests/test_debs.sh: provide einfo/eend wrapper for
     non-existing grml-etc-core files /etc/grml/lsb-functions and
     /etc/grml_colors.
Checksums-Sha1: 
 a4cdf86c51c5cef4f721299bc982b09a6b8e4030 958 grml-autoconfig_0.9.14.dsc
 2c7a7c47cb1f626d31c96019a97b40aebafe27d0 73967 grml-autoconfig_0.9.14.tar.gz
 c1560c8bcc3a100ceb1d031a2dbda29a1e898099 87690 grml-autoconfig_0.9.14_all.deb
Checksums-Sha256: 
 081bb4c7e33f46626fe9303e6844f1cf1850d807cf6d60b53ab90f0ee5694d97 958 grml-autoconfig_0.9.14.dsc
 d8668ecdb9a7b1677c43f461c0169231c4c6c422da3805226402266eeac2c13c 73967 grml-autoconfig_0.9.14.tar.gz
 06d7d0be13f1ec7634bea023d0092d05b9441211b8ca8940bcbe78972325c562 87690 grml-autoconfig_0.9.14_all.deb
Files: 
 f73e2568a650faed23fbb3b44760bb82 958 grml optional grml-autoconfig_0.9.14.dsc
 0b8fd1c141f4fac1800e9ef6fe98badd 73967 grml optional grml-autoconfig_0.9.14.tar.gz
 46ea69a59a5029db4808662db0438df5 87690 grml optional grml-autoconfig_0.9.14_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAky53CQACgkQ2N9T+zficuhjvwCfb0/BzQ3MUUR4qoo6fbV16Zit
K7IAn0nYgkxY1uiisYO7XOPAQCmZM7/0
=BcHz
-----END PGP SIGNATURE-----
msg3378 (view) Author: mika Date: 2010-10-14.12:11:34
It would be nice if the netscript bootoption exports an environment variable 
that could be used for checking whether the script is being executed under the 
netscript bootoption or manually. (I've deployment scripts that set up 
harddisks, the script should be executed if running under the netscript 
bootoption but shouldn't be executed by default if invoked manually. Checking 
for $SHLVL is possible but not reliable enough.)
History
Date User Action Args
2010-10-16 17:16:28mikasetstatus: unread -> resolved
messages: + msg3383
2010-10-14 12:11:35mikacreate