# Symlinks
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
- -ln -sv /tools/bin/{bash,cat,grep,pwd,stty} /bin
+ -ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
-ln -sv /tools/bin/perl /usr/bin
-ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
+ -ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
+ sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
-ln -sv bash /bin/sh
# Config files
# A small hack to include /root to the iso but not all of it's files.
touch /root/ipfire
+ # License agreement
+ -mkdir -pv /usr/share/doc/licenses/
+ cp -vf $(DIR_SRC)/doc/COPYING /usr/share/doc/licenses/GPLv3
+
@$(POSTBUILD)