+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/linux-igd.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YOi0cS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf linux-igd + /usr/bin/mkdir -p linux-igd + cd linux-igd + /usr/bin/gzip -dc /builddir/build/SOURCES/linuxigd-1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (linux-igd-1.0-to-cvs20070630.patch):' Patch #0 (linux-igd-1.0-to-cvs20070630.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file linuxigd-1.0/CHANGES patching file linuxigd-1.0/Makefile patching file linuxigd-1.0/config.c patching file linuxigd-1.0/etc/upnpd.conf patching file linuxigd-1.0/globals.h patching file linuxigd-1.0/main.c patching file linuxigd-1.0/pmlist.c patching file linuxigd-1.0/pmlist.h + echo 'Patch #1 (linuxigd-1.0.patch):' Patch #1 (linuxigd-1.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file linuxigd-1.0/Makefile patching file linuxigd-1.0/etc/upnpd.rc + echo 'Patch #2 (linuxigd-1.0-restrict-internal-interface.patch):' Patch #2 (linuxigd-1.0-restrict-internal-interface.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file linuxigd-1.0/util.c patching file linuxigd-1.0/util.h + echo 'Patch #3 (linux-igd-includes.patch):' Patch #3 (linux-igd-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file linuxigd-1.0/gatedevice.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NmMqG6 + umask 022 + cd /builddir/build/BUILD + cd linux-igd + pushd linuxigd-1.0 ~/build/BUILD/linux-igd/linuxigd-1.0 ~/build/BUILD/linux-igd + make 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' -j4 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/include -I../include -D_GNU_SOURCE -c main.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/include -I../include -D_GNU_SOURCE -c gatedevice.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/include -I../include -D_GNU_SOURCE -c pmlist.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/include -I../include -D_GNU_SOURCE -c util.c pmlist.c: In function 'pmlist_NewNode': pmlist.c:23:20: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (remoteHost && strlen(remoteHost) < sizeof(temp->m_RemoteHost)) strcpy(temp->m_RemoteHost, remoteHost); ^~~~~~ pmlist.c:23:20: warning: incompatible implicit declaration of built-in function 'strlen' pmlist.c:23:20: note: include '' or provide a declaration of 'strlen' pmlist.c:23:69: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] if (remoteHost && strlen(remoteHost) < sizeof(temp->m_RemoteHost)) strcpy(temp->m_RemoteHost, remoteHost); ^~~~~~ pmlist.c:23:69: warning: incompatible implicit declaration of built-in function 'strcpy' pmlist.c:23:69: note: include '' or provide a declaration of 'strcpy' pmlist.c:24:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_RemoteHost, ""); ^~~~~~ pmlist.c:24:8: note: include '' or provide a declaration of 'strcpy' pmlist.c:25:6: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(externalPort) < sizeof(temp->m_ExternalPort)) strcpy(temp->m_ExternalPort, externalPort); ^~~~~~ pmlist.c:25:6: note: include '' or provide a declaration of 'strlen' pmlist.c:25:59: warning: incompatible implicit declaration of built-in function 'strcpy' if (strlen(externalPort) < sizeof(temp->m_ExternalPort)) strcpy(temp->m_ExternalPort, externalPort); ^~~~~~ pmlist.c:25:59: note: include '' or provide a declaration of 'strcpy' pmlist.c:26:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_ExternalPort, ""); ^~~~~~ pmlist.c:26:8: note: include '' or provide a declaration of 'strcpy' pmlist.c:27:6: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(internalPort) < sizeof(temp->m_InternalPort)) strcpy(temp->m_InternalPort, internalPort); ^~~~~~ pmlist.c:27:6: note: include '' or provide a declaration of 'strlen' pmlist.c:27:59: warning: incompatible implicit declaration of built-in function 'strcpy' if (strlen(internalPort) < sizeof(temp->m_InternalPort)) strcpy(temp->m_InternalPort, internalPort); ^~~~~~ pmlist.c:27:59: note: include '' or provide a declaration of 'strcpy' pmlist.c:28:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_InternalPort, ""); ^~~~~~ pmlist.c:28:8: note: include '' or provide a declaration of 'strcpy' pmlist.c:29:6: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(protocol) < sizeof(temp->m_PortMappingProtocol)) strcpy(temp->m_PortMappingProtocol, protocol); ^~~~~~ pmlist.c:29:6: note: include '' or provide a declaration of 'strlen' pmlist.c:29:62: warning: incompatible implicit declaration of built-in function 'strcpy' if (strlen(protocol) < sizeof(temp->m_PortMappingProtocol)) strcpy(temp->m_PortMappingProtocol, protocol); ^~~~~~ pmlist.c:29:62: note: include '' or provide a declaration of 'strcpy' pmlist.c:30:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_PortMappingProtocol, ""); ^~~~~~ pmlist.c:30:8: note: include '' or provide a declaration of 'strcpy' pmlist.c:31:6: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(internalClient) < sizeof(temp->m_InternalClient)) strcpy(temp->m_InternalClient, internalClient); ^~~~~~ pmlist.c:31:6: note: include '' or provide a declaration of 'strlen' pmlist.c:31:63: warning: incompatible implicit declaration of built-in function 'strcpy' if (strlen(internalClient) < sizeof(temp->m_InternalClient)) strcpy(temp->m_InternalClient, internalClient); ^~~~~~ pmlist.c:31:63: note: include '' or provide a declaration of 'strcpy' pmlist.c:32:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_InternalClient, ""); ^~~~~~ pmlist.c:32:8: note: include '' or provide a declaration of 'strcpy' pmlist.c:33:6: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(desc) < sizeof(temp->m_PortMappingDescription)) strcpy(temp->m_PortMappingDescription, desc); ^~~~~~ pmlist.c:33:6: note: include '' or provide a declaration of 'strlen' pmlist.c:33:61: warning: incompatible implicit declaration of built-in function 'strcpy' if (strlen(desc) < sizeof(temp->m_PortMappingDescription)) strcpy(temp->m_PortMappingDescription, desc); ^~~~~~ pmlist.c:33:61: note: include '' or provide a declaration of 'strcpy' pmlist.c:34:8: warning: incompatible implicit declaration of built-in function 'strcpy' else strcpy(temp->m_PortMappingDescription, ""); ^~~~~~ pmlist.c:34:8: note: include '' or provide a declaration of 'strcpy' pmlist.c: In function 'pmlist_Find': pmlist.c:53:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( (strcmp(temp->m_ExternalPort, externalPort) == 0) && ^~~~~~ pmlist.c: In function 'pmlist_AddPortMapping': pmlist.c:237:7: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration] snprintf(dest, DEST_LEN, "%s:%s", internalClient, internalPort); ^~~~~~~~ pmlist.c:237:7: warning: incompatible implicit declaration of built-in function 'snprintf' pmlist.c:237:7: note: include '' or provide a declaration of 'snprintf' pmlist.c: In function 'pmlist_DeletePortMapping': pmlist.c:295:7: warning: incompatible implicit declaration of built-in function 'snprintf' snprintf(dest, DEST_LEN, "%s:%s", internalClient, internalPort); ^~~~~~~~ pmlist.c:295:7: note: include '' or provide a declaration of 'snprintf' main.c: In function 'main': main.c:39:6: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[arg], "-f") == 0) { ^~~~~~ main.c:45:2: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(g_vars.extInterfaceName, argv[arg++], IFNAMSIZ); ^~~~~~~ main.c:45:2: warning: incompatible implicit declaration of built-in function 'strncpy' main.c:45:2: note: include '' or provide a declaration of 'strncpy' gatedevice.c: In function 'DeletePortMapping': gatedevice.c:648:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((temp = pmlist_FindSpecific(ext_port, proto))) ^~ gatedevice.c:651:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (result==1) ^~ gatedevice.c: In function 'GetTotal': gatedevice.c:346:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(proc, "%*[^\n]\n%*[^\n]\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/include -I../include -D_GNU_SOURCE -c config.c gatedevice.c: In function 'GetGenericPortMappingEntry': gatedevice.c:521:92: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 182 and 437 [-Wformat-truncation=] snprintf(resultStr, RESULT_LEN, "\n%s\n", ca_event->ActionName, ^~ In file included from /usr/include/stdio.h:861:0, from gatedevice.c:2: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 85 or more bytes (assuming 595) into a destination of size 512 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gatedevice.c: In function 'GetSpecificPortMappingEntry': gatedevice.c:572:78: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 182 and 437 [-Wformat-truncation=] snprintf(resultStr, RESULT_LEN, "\n%s\n", ca_event->ActionName, ^~ In file included from /usr/include/stdio.h:861:0, from gatedevice.c:2: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 85 or more bytes (assuming 595) into a destination of size 512 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gatedevice.c: In function 'DeletePortMapping': gatedevice.c:687:79: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 182 and 437 [-Wformat-truncation=] snprintf(resultStr, RESULT_LEN, "\n%s\n", ^~ In file included from /usr/include/stdio.h:861:0, from gatedevice.c:2: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 85 and 595 bytes into a destination of size 512 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gatedevice.c: In function 'AddPortMapping': gatedevice.c:486:75: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 182 and 437 [-Wformat-truncation=] snprintf(resultStr, RESULT_LEN, "\n%s\n", ^~ In file included from /usr/include/stdio.h:861:0, from gatedevice.c:2: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 85 and 595 bytes into a destination of size 512 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 main.o gatedevice.o pmlist.o util.o config.o -lpthread -lupnp -lixml -lthreadutil -L/usr/lib -L../libs -o upnpd make upnpd finished on Mon Mar 12 21:58:50 UTC 2018 + popd ~/build/BUILD/linux-igd + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.C91ez8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 + cd linux-igd + rm -rf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 + pushd linuxigd-1.0 ~/build/BUILD/linux-igd/linuxigd-1.0 ~/build/BUILD/linux-igd + make DESTDIR=/builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 install install -d /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/init.d/ install -d /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/linuxigd/ install -d /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/sysconfig/ install -d /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/sbin/ install -d /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/man/man8/ install etc/gatedesc.xml /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/linuxigd install etc/gateconnSCPD.xml /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/linuxigd install etc/gateicfgSCPD.xml /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/linuxigd install etc/dummy.xml /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/linuxigd install etc/upnpd.conf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc install upnpd /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/sbin install upnpd.8 /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/man/man8 install -D etc/upnpd.rc /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/rc.d/init.d/upnpd install -D etc/upnpd.rc.conf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/sysconfig/upnpd + iconv -f latin1 -t utf8 CHANGES + iconv -f latin1 -t utf8 TODO + cp LICENSE ../ + popd ~/build/BUILD/linux-igd + rm -rf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/rc.d/init.d + install -D -m 644 /builddir/build/SOURCES/upnpd.service /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/lib/systemd/system/upnpd.service + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs *** WARNING: ./etc/upnpd.conf is executable but has empty or no shebang, removing executable bit *** WARNING: ./etc/sysconfig/upnpd is executable but has empty or no shebang, removing executable bit *** WARNING: ./etc/linuxigd/gateicfgSCPD.xml is executable but has empty or no shebang, removing executable bit *** WARNING: ./etc/linuxigd/gatedesc.xml is executable but has empty or no shebang, removing executable bit *** WARNING: ./etc/linuxigd/gateconnSCPD.xml is executable but has empty or no shebang, removing executable bit *** WARNING: ./etc/linuxigd/dummy.xml is executable but has empty or no shebang, removing executable bit Processing files: linux-igd-1.0-24.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6bmQzo + umask 022 + cd /builddir/build/BUILD + cd linux-igd + DOCDIR=/builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/doc/linux-igd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/doc/linux-igd + cp -pr CHANGES /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/doc/linux-igd + cp -pr TODO /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/doc/linux-igd + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.eZnth0 + umask 022 + cd /builddir/build/BUILD + cd linux-igd + LICENSEDIR=/builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/licenses/linux-igd + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/licenses/linux-igd + cp -pr LICENSE /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64/usr/share/licenses/linux-igd + exit 0 Provides: config(linux-igd) = 1.0-24.fc28 linux-igd = 1.0-24.fc28 linux-igd(riscv-64) = 1.0-24.fc28 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libixml.so.2()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libthreadutil.so.6()(64bit) libupnp.so.6()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 Wrote: /builddir/build/SRPMS/linux-igd-1.0-24.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/linux-igd-1.0-24.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.MtEasp + umask 022 + cd /builddir/build/BUILD + cd linux-igd + rm -rf /builddir/build/BUILDROOT/linux-igd-1.0-24.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff