aboutsummaryrefslogtreecommitdiff
path: root/system/bootchart/mkchartrd
blob: cdf9b602b94c94338977faa4cbf5794c2e27dbc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

mkinitrd $@ -o /boot/initrd.chart.gz

cd /boot
sed -i s/"sbin\/init"/"sbin\/bootchartd"/g /boot/initrd-tree/init 
OPTIONS=`echo $@|sed s/"-c"/""/`

mkinitrd  $OPTIONS -o /boot/initrd.chart.gz