Revision 3b0420ce

b/snf-image-host/snf-image-update-helper.in
116 116
pkg_name=$(basename "$HELPER_PKG")  
117 117
CLEANUP+=("rm $TMPDIR/tmp/$pkg_name")
118 118
chroot ${TMPDIR} dpkg -i /tmp/$pkg_name
119

  
120
cat > ${TMPDIR}/etc/rc.local <<EOF
121
#!/bin/sh -e
122
#
123
# rc.local
124
#
125
# This script is executed at the end of each multiuser runlevel.
126
# Make sure that the script will "exit 0" on success or any other
127
# value on error.
128
#
129
# In order to enable or disable this script just change the execution
130
# bits.
131
#
132
# By default this script does nothing.
133

  
134
/usr/bin/snf-image-helper
135

  
136
exit 0
137
EOF
138

  
139
chmod +x ${TMPDIR}/etc/rc.local
140

  
119 141
echo "done"
120 142

  
121 143
cleanup

Also available in: Unified diff