blob: cb1aed0c82aedbf7eef7f0f94607540bc1d9bbbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# (c) 2005-2009 Mandriva SA
# to be sourced
uname_r=`uname -r`
FILE=/var/lib/speedboot/status
if [ -f /dev/.in_sysinit ]; then
REASON="OK"
SPEEDBOOT=yes
else
REASON="STANDARD BOOT"
fi
grep -q $uname_r $FILE 2>/dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
if [ "x$SPEEDBOOT" = "xyes" ]; then
sed -i -e "s/$uname_r .*/$uname_r $REASON/" $FILE
fi
else
echo $uname_r $REASON>> $FILE
fi
|