From: adrelanos <adr...@ri...> - 2013-05-25 12:48:19
|
Hi! I am currently working on the graphical Whonix-Gateway: https://github.com/Whonix/Whonix/issues/26 This is what I currently have, file /etc/profile.d/20_desktop.sh: #!/bin/bash echo "Starting kdm (graphical KDE login manager) in 10 seconds," echo "unless you abort using ctrl + c." sleep 10 ## There is a /etc/sudoers.d/kdm exception. sudo /usr/sbin/service kdm start The problem is, /etc/profile.d/ scripts get run at least three times. (After boot, after auto login, after kdm started.) Do you know, a) any better place for this kind of user interaction during boot, or b) know how to only run /etc/profile.d/20_desktop.sh when executed by autologin (getty) and exit in all other cases? (Autologin is currently done using "1:2345:respawn:/sbin/getty --autologin user 38400 tty1" in whonix_shared/etc/inittab.) (And I plan on having variables in /etc/whonix.d/ to either disable waiting for this, always boot into cli, always boot into kdm, etc. - that is simple to implement, once I found the appropriate hook.) Cheers, adrelanos |