Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: lykkedk on October 25, 2014, 08:52:37 AM

Title: Possible SSH -login ONLY startup script
Post by: lykkedk on October 25, 2014, 08:52:37 AM
Hi forum here.

I need a script, or like, which only executes when i login.

My idea is, that programs like midnight commander, nano, compile-essentials etc... etc... shall load only, when i login.

Is there some file, or something else, which is created / executed, or like when a user login ??

Regards;
   Jesper.
Title: Re: Possible SSH -login ONLY startup script
Post by: bmarkus on October 25, 2014, 09:00:47 AM
Scripts in /etc/profile.d
Title: Re: Possible SSH -login ONLY startup script
Post by: lykkedk on October 25, 2014, 09:20:15 AM
So.

Are scripts automatically executed there by login ?

Also i have to add /etc/profile.d to /opt/.filetool.lst ?

Quote
tc@box:~$ ls -all /etc/profile.d
total 4
drwxrwxr-x    2 root     staff            0 Sep 15 17:49 ./
drwxr-xr-x    7 tc       staff            0 Jan  1  1970 ../
-rwxr-xr-x    1 root     root            51 Sep 15 17:49 armmem.sh
Title: Re: Possible SSH -login ONLY startup script
Post by: bmarkus on October 25, 2014, 09:39:44 AM
yes
yes
Title: Re: Possible SSH -login ONLY startup script
Post by: lykkedk on October 25, 2014, 09:43:04 AM
 :) working.. Thx..