Magellan Linux

Contents of /alx-src/branches/alxconf_20060908/install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1708 - (show annotations) (download) (as text)
Mon Jan 24 23:30:21 2011 UTC (13 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 1756 byte(s)
-install slim as display manager and dropped old X-no-wm stuff
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/update-alx.sh \
17 /usr/sbin/update-alx
18
19 # inits
20 for i in alxsetstate alxsettings
21 do
22 install -m 0755 -o root -g root \
23 init.d/"${i}" \
24 /etc/rc.d/init.d/"${i}"
25 done
26
27 # lib bins
28 install -d /usr/lib/alxconfig-ng/bin
29 for i in bin/user_shutdown.sh \
30 bin/user_reboot.sh
31 do
32 install -m 0755 -o root -g root \
33 ${i} \
34 /usr/lib/alxconfig-ng/bin
35 done
36
37 # functions
38 for i in config_network.sh \
39 config_printers.sh \
40 config_sessions.sh \
41 config_x11.sh \
42 config_auth.sh \
43 config_ssh_auth.sh \
44 config_modules.sh \
45 config_versions.sh \
46 mysqlfunctions \
47 serial_functions.sh
48 do
49 install -m 0644 -o root -g root \
50 functions/"${i}" \
51 /usr/lib/alxconfig-ng/functions/$(basename "${i}" .sh)
52 done
53
54 # configs
55 install -m 0644 -o root -g root \
56 conf/config.rc \
57 /etc/alxconfig-ng
58
59 install -m 0644 -o root -g root \
60 conf/unsupported-netcard-drivers \
61 /etc/sysconfig/hwsetup
62
63 # icons
64 install -m 0644 -o root -g root \
65 icons/default.png \
66 /etc/alxconfig-ng/ica-sessions/icons
67
68 # skeletons
69 for i in fluxbox idesk samba slim
70 do
71 [ ! -d /etc/alxconfig-ng/skel/"${i}" ] && install -d /etc/alxconfig-ng/skel/"${i}"
72 install -m 0644 -o root -g root \
73 skel/"${i}"/* \
74 /etc/alxconfig-ng/skel/"${i}"/
75 done
76
77 # install user station if needed
78 [ -x /usr/lib/mage/museradd ] && \
79 /usr/lib/mage/museradd -o "-g users -G audio,video -d /home/station -s /bin/bash" station
80 [ ! -d /home/station ] && install -o station -g users -d /home/station
81 echo "exec startfluxbox" > /home/station/.xinitrc