mainly minor fixes
[distro-setup] / keyscript-on
index b86dd39791afe18210991cb31c2d6f2dfd076fec..ef8f3e19f7f2fb0d89faea07b28c44656b55c2e7 100755 (executable)
@@ -41,7 +41,7 @@ sed="sed --follow-symlinks"
 # /sbin/update-initramfs: 157: mkinitramfs: not found
 PATH="/sbin:$PATH"
 
-if [[ $INVOCATION_ID ]]; then
+if [[ $PPID == 1 ]]; then
   if [[ -e /b/bash_unpublished/source-state ]]; then
     # this is the canonical one
     source /b/bash_unpublished/source-state