comparison core/etc/rc.init @ 560:2f46816f1cd6

core/etc: enable font/keymap loading
author David Demelier <markand@malikania.fr>
date Fri, 05 Jul 2019 21:09:00 +0200
parents d6be16d7c5de
children 79f1635bda5f
comparison
equal deleted inserted replaced
559:d6be16d7c5de 560:2f46816f1cd6
97 97
98 # Remount / and enable swap as the system is ready. 98 # Remount / and enable swap as the system is ready.
99 /bin/mount -o remount,rw / 99 /bin/mount -o remount,rw /
100 /bin/swapon -a 100 /bin/swapon -a
101 101
102 # Update shared library caches.
103 if [ -x /bin/ldconfig ]; then
104 /bin/ldconfig
105 fi
106
102 if [ -n "$TIMEZONE" ]; then 107 if [ -n "$TIMEZONE" ]; then
103 echo -n "Setting timezone: " 108 echo -n "Setting timezone: "
104 109
105 if [ -f /share/zoneinfo/$TIMEZONE ]; then 110 if [ -f /share/zoneinfo/$TIMEZONE ]; then
106 /bin/ln -sf /share/zoneinfo/$TIMEZONE /etc/localtime 111 /bin/ln -sf /share/zoneinfo/$TIMEZONE /etc/localtime
108 else 113 else
109 echo "$TIMEZONE not found." 114 echo "$TIMEZONE not found."
110 fi 115 fi
111 fi 116 fi
112 117
118 # Console font and keymap.
119 if [ -n "$FONT" ] && [ -x /bin/setfont ]; then
120 echo "Setting font: $FONT"
121 /bin/setfont $FONT
122 fi
123
124 if [ -n "$KEYMAP" ] && [ -x /bin/loadkeys ]; then
125 echo "Setting keymap: $KEYMAP"
126 /bin/loadkeys $KEYMAP
127 fi
128
113 # Cleanup some files. 129 # Cleanup some files.
114 rm -f /etc/forcefsck 130 rm -f /etc/forcefsck