summaryrefslogtreecommitdiff
path: root/recipes/opkg/files/configure
blob: 318ccb19c3b75f2cec5a6b2b96dbf2baf721f1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# get splash funcs
if [ -f /etc/default/splashfuncs ]; then
  . /etc/default/splashfuncs
## tell boot status to "pulsate" really long busy cycle here
status_pulse || true
fi

# run configure in bg
opkg-cl configure &
PID=$!

if [ -f /etc/default/splashfuncs ]; then
  # while configure still running loop
  while test -d /proc/$PID; do
  # tick to splash so it doesn't time out
    status_tick || true
    sleep 1
  done
fi

# delete myself
rm -f /etc/rcS.d/S98configure