diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-07 10:40:22 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-07 10:40:22 +0200 |
commit | 5f1c309bc7f9924f2506f88cba345dd8b2e09cd8 (patch) | |
tree | c9743d5485a274b1aa9718f306dfe8c836803e35 /etc | |
parent | 5acbc5153d58fcad2d40ccc774af1accf41e4c8b (diff) |
Automatically start X on saviour and nemesis
Diffstat (limited to 'etc')
-rw-r--r-- | etc/hosts/profile-nemesis | 6 | ||||
l--------- | etc/hosts/profile-saviour | 1 | ||||
-rw-r--r-- | etc/profile | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/etc/hosts/profile-nemesis b/etc/hosts/profile-nemesis new file mode 100644 index 0000000..2b06433 --- /dev/null +++ b/etc/hosts/profile-nemesis @@ -0,0 +1,6 @@ +## vim:ft=zsh +if [[ ! -e /tmp/.afterboot ]] { + touch /tmp/.afterboot + unsetopt bg_nice + startx &! exit +} diff --git a/etc/hosts/profile-saviour b/etc/hosts/profile-saviour new file mode 120000 index 0000000..193e6be --- /dev/null +++ b/etc/hosts/profile-saviour @@ -0,0 +1 @@ +profile-nemesis
\ No newline at end of file diff --git a/etc/profile b/etc/profile index ed9a40d..6f34cb9 100644 --- a/etc/profile +++ b/etc/profile @@ -15,5 +15,6 @@ echo [[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!" [[ -r $ZDIR/local-profile ]] && source $ZDIR/local-profile +[[ -r $ZDIR/hosts/profile-$HOST ]] && source $ZDIR/hosts/profile-$HOST unfunction pr_info |