diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-08-31 22:44:08 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-08-31 22:44:08 -0400 |
commit | ddaffd4be5f35ffa738bfdb2041b5075e2131344 (patch) | |
tree | a754d72877bf5abb66a01321fcfe5877f4287fc5 | |
parent | 024beb6e24b1f1d0976109e0710a74cd9b6377c2 (diff) | |
download | multihome-ddaffd4be5f35ffa738bfdb2041b5075e2131344.tar.gz |
Comment init script
-rw-r--r-- | multihome.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/multihome.c b/multihome.c index 41fda56..bb86843 100644 --- a/multihome.c +++ b/multihome.c @@ -231,12 +231,16 @@ int touch(char *filename) { * Generate multihome initialization script */ void write_init_script() { - const char *script_block = "#\n# This script was generated on %s\n#\n\n" + const char *script_block = \ + "#\n# This script was generated on %s\n#\n\n" + "# Set path to multihome executable to avoid PATH lookups\n" "MULTIHOME=%s\n" "if [ -x $MULTIHOME ]; then\n" + " # Save HOME\n" " HOME_OLD=$HOME\n" " # Redeclare HOME\n" " HOME=$($MULTIHOME)\n" + " # Switch to new HOME\n" " if [ \"$HOME\" != \"$HOME_OLD\" ]; then\n" " cd $HOME\n" " fi\n" |