Updating code to current coding style in a some locations.
[live-boot-grml.git] / components / 9990-aaa-fixme.sh
1 #!/bin/sh
2
3 PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4 export PATH
5
6 echo "/root/lib" >> /etc/ld.so.conf
7 echo "/root/usr/lib" >> /etc/ld.so.conf
8
9 mountpoint="/live/medium"
10 alt_mountpoint="/media"
11 LIVE_MEDIA_PATH="live"
12
13 HOSTNAME="host"
14
15 mkdir -p "${mountpoint}"
16 tried="/tmp/tried"
17
18 # Create /etc/mtab for debug purpose and future syncs
19 mkdir -p /etc
20
21 if [ ! -f /etc/mtab ]
22 then
23         touch /etc/mtab
24 fi
25
26 if [ ! -x "/bin/fstype" ]
27 then
28         # klibc not in path -> not in initramfs
29         PATH="${PATH}:/usr/lib/klibc/bin"
30         export PATH
31 fi
32
33 # handle upgrade path from old udev (using udevinfo) to
34 # recent versions of udev (using udevadm info)
35 if [ -x /sbin/udevadm ]
36 then
37         udevinfo='/sbin/udevadm info'
38 else
39         udevinfo='udevinfo'
40 fi
41
42 custom_overlay_label="persistence"
43 persistence_list="persistence.conf"
44 old_persistence_list="live-persistence.conf"
45
46 if [ ! -f /live.vars ]
47 then
48         touch /live.vars
49 fi