Contents of /alx-src/tags/alxconf_20060908_9/install.sh
Parent Directory | Revision Log
Revision 1598 -
(show annotations)
(download)
(as text)
Thu Dec 2 15:20:12 2010 UTC (13 years, 9 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/install.sh
File MIME type: application/x-sh
File size: 1830 byte(s)
Thu Dec 2 15:20:12 2010 UTC (13 years, 9 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/install.sh
File MIME type: application/x-sh
File size: 1830 byte(s)
-added unsupported-netcard-drivers which contains drivers hwsetup should not find - these are not supported with alx
1 | #!/bin/bash |
2 | |
3 | # dirs |
4 | for i in /etc/alxconfig-ng/skel \ |
5 | /etc/alxconfig-ng/ica-sessions/icons \ |
6 | /etc/rc.d/init.d \ |
7 | /etc/sysconfig/hwsetup \ |
8 | /usr/lib/alxconfig-ng/functions \ |
9 | /usr/sbin |
10 | do |
11 | [ ! -d "${i}" ] && install -d "${i}" |
12 | done |
13 | |
14 | # bins |
15 | install -m 0755 -o root -g root \ |
16 | bin/X-no-wm.sh \ |
17 | /usr/sbin/X-no-wm |
18 | install -m 0755 -o root -g root \ |
19 | bin/update-alx.sh \ |
20 | /usr/sbin/update-alx |
21 | |
22 | # inits |
23 | for i in alxsetstate alxsettings xdm-alx |
24 | do |
25 | install -m 0755 -o root -g root \ |
26 | init.d/"${i}" \ |
27 | /etc/rc.d/init.d/"${i}" |
28 | done |
29 | |
30 | # lib bins |
31 | install -d /usr/lib/alxconfig-ng/bin |
32 | for i in bin/user_shutdown.sh \ |
33 | bin/user_reboot.sh |
34 | do |
35 | install -m 0755 -o root -g root \ |
36 | ${i} \ |
37 | /usr/lib/alxconfig-ng/bin |
38 | done |
39 | |
40 | # functions |
41 | for i in config_network.sh \ |
42 | config_printers.sh \ |
43 | config_sessions.sh \ |
44 | config_x11.sh \ |
45 | config_auth.sh \ |
46 | config_ssh_auth.sh \ |
47 | config_modules.sh \ |
48 | config_versions.sh \ |
49 | mysqlfunctions \ |
50 | serial_functions.sh |
51 | do |
52 | install -m 0644 -o root -g root \ |
53 | functions/"${i}" \ |
54 | /usr/lib/alxconfig-ng/functions/$(basename "${i}" .sh) |
55 | done |
56 | |
57 | # configs |
58 | install -m 0644 -o root -g root \ |
59 | conf/config.rc \ |
60 | /etc/alxconfig-ng |
61 | |
62 | install -m 0644 -o root -g root \ |
63 | conf/unsupported-netcard-drivers \ |
64 | /etc/sysconfig/hwsetup |
65 | |
66 | # icons |
67 | install -m 0644 -o root -g root \ |
68 | icons/default.png \ |
69 | /etc/alxconfig-ng/ica-sessions/icons |
70 | |
71 | # skeletons |
72 | for i in fluxbox idesk samba |
73 | do |
74 | [ ! -d /etc/alxconfig-ng/skel/"${i}" ] && install -d /etc/alxconfig-ng/skel/"${i}" |
75 | install -m 0644 -o root -g root \ |
76 | skel/"${i}"/* \ |
77 | /etc/alxconfig-ng/skel/"${i}"/ |
78 | done |
79 | |
80 | # install user station if needed |
81 | [ -x /usr/lib/mage/museradd ] && \ |
82 | /usr/lib/mage/museradd -o "-g users -G audio,video -d /home/station -s /bin/bash" station |
83 | [ ! -d /home/station ] && install -o station -g users -d /home/station |
84 | echo "exec startfluxbox" > /home/station/.xinitrc |