forked from ghostbsd/ghostbsd-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgershwin.sh
More file actions
29 lines (24 loc) · 868 Bytes
/
Copy pathgershwin.sh
File metadata and controls
29 lines (24 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e -u
. "${cwd}/common_config/autologin.sh"
. "${cwd}/common_config/base-setting.sh"
. "${cwd}/common_config/finalize.sh"
. "${cwd}/common_config/setuser.sh"
lightdm_setup()
{
sed -i '' "s@#greeter-session=example-gtk-gnome@greeter-session=slick-greeter@" "${release}/usr/local/etc/lightdm/lightdm.conf"
sed -i '' "s@#user-session=default@user-session=gershwin@" "${release}/usr/local/etc/lightdm/lightdm.conf"
}
setup_xinit()
{
chroot "${release}" su "${live_user}" -c "echo 'exec /usr/local/bin/gershwin-x11' > /Users/${live_user}/.xinitrc"
echo "exec /usr/local/bin/gershwin-x11" > "${release}/root/.xinitrc"
echo "exec /usr/local/bin/gershwin-x11" > "${release}/usr/share/skel/dot.xinitrc"
}
patch_etc_files
patch_loader_conf_d
community_setup_liveuser_gershwin
community_setup_autologin_gershwin
lightdm_setup
setup_xinit
final_setup