mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
- Finish all unnecessary threads and processes before the flash process
- Use flash.start to stop other (user-defined) processes
Origin commit data
------------------
Commit: c26fd64759
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-08 (Sat, 08 Jun 2013)
Origin message was:
------------------
* Software update: Rework preparing the flash process
- Finish all unnecessary threads and processes before the flash process
- Use flash.start to stop other (user-defined) processes
29 lines
493 B
Bash
Executable File
29 lines
493 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if pidof vsftpd > /dev/null; then
|
|
echo "Kill vsftpd"
|
|
killall vsftpd
|
|
fi
|
|
|
|
if pidof ushare > /dev/null; then
|
|
echo "Kill ushare"
|
|
trap "" INT
|
|
kill -INT `pidof ushare`
|
|
fi
|
|
|
|
if [ -e /var/etc/.djmount ]; then
|
|
echo "Kill djmount"
|
|
fusermount -u /media/upnp
|
|
fi
|
|
|
|
## remount rootfs readonly #################
|
|
mount -no remount,ro /
|
|
RET=$?
|
|
echo -n "remount rootfs readonly "
|
|
if [ "$RET" = "0" ]; then
|
|
echo "successful."
|
|
else
|
|
echo "failed."
|
|
fi
|
|
############################################
|