Skip to content

Commit

Permalink
fix umount
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekiro-kost committed Apr 19, 2024
1 parent 6df36ff commit 339044e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/luna.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public static function mountPersistent() {

public static function partitionSD() {
$sdSector = "/dev/mmcblk2";
exec('sudo unmount ' . $sdSector);
exec('sudo umount ' . $sdSector);
message::add(__CLASS__, __('Partitionnage en cours', __FILE__));
exec('sudo chmod +x ../../data/patchs/partitionSD.sh');
exec('sudo ../../data/patchs/partitionSD.sh');
Expand Down Expand Up @@ -628,7 +628,7 @@ public static function mountSD() {
if (self::isMountedSD()) {
return;
}
exec('sudo unmount ' . $sdSector);
exec('sudo umount ' . $sdSector);
exec('sudo mount ' . $sdSector . ' ' . $montage);
exec('sudo chmod 775 ' . $montage);
exec('sudo chown www-data:www-data -R ' . $montage);
Expand Down

0 comments on commit 339044e

Please sign in to comment.